forked from halfhp/androidplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
58 lines (43 loc) · 1.89 KB
/
circle.yml
File metadata and controls
58 lines (43 loc) · 1.89 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
machine:
environment:
KEYSTORE: ${HOME}/${CIRCLE_PROJECT_REPONAME}/sigining.keystore
PUBLISHER_ACCT_JSON_FILE: ${HOME}/${CIRCLE_PROJECT_REPONAME}/publisher_profile.json
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "android-24"
- echo y | android update sdk --no-ui --all --filter "build-tools-24.0.2"
- bash ./misc/download_keystore.sh
test:
override:
- (./gradlew test assembleRelease javadoc):
timeout: 360
post:
# core lib:
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME}/androidplot-core/build/outputs/aar/ $CIRCLE_ARTIFACTS
# demo app .apk:
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME}/demoapp/build/outputs/apk/ $CIRCLE_ARTIFACTS
# javadoc:
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME}/androidplot-core/build/docs/javadoc/ $CIRCLE_ARTIFACTS
# junit xml report:
- mkdir -p $CIRCLE_TEST_REPORTS/junit-xml/
- find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit-xml/ \;
# junit html report:
# TODO: recursively copy subdirs etc
- mkdir -p $CIRCLE_TEST_REPORTS/junit-html/
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME}/androidplot-core/build/reports/tests/release/* $CIRCLE_TEST_REPORTS/junit-html/
# lint report:
- mkdir -p $CIRCLE_TEST_REPORTS/lint/
- find . -type f -regex ".*/build/outputs/.*html" -exec cp {} $CIRCLE_TEST_REPORTS/lint/ \;
# code coverage:
- ./gradlew jacocoTestReportDebug
- mkdir -p $CIRCLE_TEST_REPORTS/jacoco/
- cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME}/androidplot-core/build/reports/jacoco/debug/. $CIRCLE_TEST_REPORTS/jacoco
- bash <(curl -s https://codecov.io/bash)
deployment:
master:
branch: master
commands:
- (./gradlew bintrayUpload):
timeout: 360
- bash ./misc/download_google_publisher_json.sh
- ./gradlew publishApkRelease