@@ -8,21 +8,11 @@ version: 2.1
8
8
# See: https://circleci.com/docs/2.0/orb-intro/
9
9
orbs :
10
10
android :
circleci/[email protected]
11
-
12
- # Define a job to be invoked later in a workflow.
13
- # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
11
+
14
12
jobs :
15
- # Below is the definition of your job to build and test your app, you can rename and customize it as you want.
16
- build-and-test :
17
- # These next lines define the Android machine image executor.
18
- # See: https://circleci.com/docs/2.0/executor-types/
19
- executor :
20
- name : android/android-machine
21
-
22
- # Add steps to the job
23
- # See: https://circleci.com/docs/2.0/configuration-reference/#steps
13
+ build :
14
+ executor : android/android
24
15
steps :
25
- # Checkout the code as the first step.
26
16
- checkout
27
17
- restore_cache :
28
18
key : android-orb-v1-
50
40
path : app/build/test-results
51
41
- store_artifacts :
52
42
path : app/build/outputs/apk/debug/
53
- destination : artifact-file
54
- # The next step will run the unit tests
55
- - android/run-tests :
56
- test-command : ./gradlew lint testDebug --continue
57
-
58
- # Then start the emulator and run the Instrumentation tests!
59
- - android/start-emulator-and-run-tests :
60
- test-command : ./gradlew connectedDebugAndroidTest
61
- system-image : system-images;android-25;google_apis;x86
62
-
63
- # And finally run the release build
64
- - run :
65
- name : Assemble release build
66
- command : |
67
- ./gradlew assembleRelease
68
-
69
- # Invoke jobs via workflows
70
- # See: https://circleci.com/docs/2.0/configuration-reference/#workflows
71
- workflows :
72
- sample : # This is the name of the workflow, feel free to change it to better match your workflow.
73
- # Inside the workflow, you define the jobs you want to run.
74
- jobs :
75
- - build-and-test
43
+ destination : artifact-file
0 commit comments