-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle.yml
More file actions
executable file
·33 lines (30 loc) · 959 Bytes
/
circle.yml
File metadata and controls
executable file
·33 lines (30 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
machine:
environment:
TERM: "dumb"
# Get artifacts from the correct directories
general:
artifacts:
- "app/build/outputs"
- "app/build/reports/tests"
test:
pre:
# Start emulator for later testing
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
post:
# Run lint checks
- ./gradlew lint
# Wait for emulator to start
- circle-android wait-for-boot
# unlock the emulator screen
- sleep 30
- adb shell input keyevent 82
# Run tests on the emulator.
- ./gradlew connectedAndroidTest
# Get test results
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- find . -type f -regex ".*/build/outputs/androidTest-results/connected/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
# Assemble APKs
- export TERM="dumb"; ./gradlew assemble