-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
18 lines (18 loc) · 1.02 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dependencies:
pre: # Builds stop if licenses are not accepted
- echo y | android update sdk --no-ui --all --filter "android-25"
- echo y | android update sdk --no-ui --all --filter "build-tools-25.0.2"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
test:
override:
- ./gradlew jacocoTestReport
post: #For nice looking results - https://circleci.com/docs/1.0/test-metadata/#gradle-junit-results
- if [ -d "api/build/outputs" ]; then mkdir -p $CIRCLE_ARTIFACTS/outputs; cp -r api/build/outputs/* $CIRCLE_ARTIFACTS/outputs/; fi
- mkdir -p $CIRCLE_TEST_REPORTS/junit/; find . -type f -regex ".*/build/test-results/.*xml" -exec cp --parents {} $CIRCLE_TEST_REPORTS/junit/ \;
- if [ -d "api/build/reports/tests" ]; then mv api/build/reports/tests $CIRCLE_TEST_REPORTS/html; fi
- if [ -d "api/build/reports/jacoco" ]; then mv api/build/reports/jacoco $CIRCLE_TEST_REPORTS/coverage; fi
deployment:
production:
branch: master
commands:
- ./gradlew install bintrayUpload