-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
26 lines (23 loc) · 1012 Bytes
/
.cirrus.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
container:
image: cirrusci/android-sdk:28
lint_task:
name: 'Lint check sources'
script: ./gradlew lint
build_task:
name: 'Build Libraries'
script: ./gradlew build
test_task:
name: 'Run Tests'
test_script: ./gradlew test
env:
GITHUB_USER: ENCRYPTED[!e72bc98e2310dd38a096085d559390b95c38fa694e31dfa0f324967cdc03a505681b159e819c5a3d1ae837ec63ff0a26!]
GITHUB_PASSWORD: ENCRYPTED[!90eb3b7b230903c3c3a89e75517fb8927136ca5b4d98e13990d2e85b540a8ef14ed49c806ed17c2f27380adfaf665749!]
publish_coverage_script:
- git config --global user.name "Cirrus CI"
- git config --global user.email "[email protected]"
- git clone https://$GITHUB_USER:[email protected]/ergonlabs/spreedly-docs.git docs_report
- mkdir -p docs_report/coverage/pr/core-sdk/android
- cp -fR build/core-sdk/reports/jacoco/test/html/* docs_report/coverage/pr/core-sdk/android
- cd docs_report
- git add .
- git commit -m "reports for java" && git push || echo "No code coverage changes"