-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathcircle.yml
30 lines (28 loc) · 1.12 KB
/
circle.yml
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
experimental:
notify:
branches:
only:
- master
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools
# Build three times, the first two builds will resolve dependencies via sdk-manager-plugin and then fail
# https://github.com/JakeWharton/sdk-manager-plugin/issues/10
- ./gradlew assembleDebug || true
- ./gradlew assembleDebug || true
- ./gradlew assembleDebug || true
override:
# The default Circle CI dependency step wants to run the Rakefile, which fails because we don't
# install the gems. Overriding removes this automated step.
- ./gradlew dependencies
test:
override:
- ./gradlew --stacktrace --info lint test
- ./gradlew --stacktrace --info :Demo:assembleDebug
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- mkdir $CIRCLE_ARTIFACTS/lint/
- mkdir $CIRCLE_ARTIFACTS/apk/
- find . -regex ".*test-.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- find . -regex ".*lint-results-.*html" -exec cp {} $CIRCLE_ARTIFACTS/lint/ \;
- cp Demo/build/outputs/apk/Demo-debug.apk $CIRCLE_ARTIFACTS/apk/Demo.apk