This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
48 lines (47 loc) · 1.73 KB
/
wercker.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
box: chibatching/docker-android-sdk
build:
steps:
- script:
name: set android sdk location
code: |
echo "sdk.dir=${ANDROID_HOME}" > local.properties
- script:
name: setup cache
code: |
mkdir -p $WERCKER_CACHE_DIR/.gradle
mkdir -p $WERCKER_CACHE_DIR/.bundle
mkdir -p .bundle
ln -sf $WERCKER_CACHE_DIR/.gradle ~/.gradle
ln -sf $WERCKER_CACHE_DIR/.bundle .bundle
- script:
name: run check licenses
code: |
./gradlew --stacktrace clean app:checkLicenses -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false
- script:
name: run lint
code: |
./gradlew --stacktrace app:lintDebug -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false
cp ./app/build/reports/lint-* $WERCKER_REPORT_ARTIFACTS_DIR/
- script:
name: run unit test
code: |
./gradlew --stacktrace app:jacocoTestDebugUnitTestReport -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false
cp -r ./app/build/reports/tests/* $WERCKER_REPORT_ARTIFACTS_DIR/
cp -r ./app/build/reports/jacoco/* $WERCKER_REPORT_ARTIFACTS_DIR/
- script:
name: upload test result to codecov
code: |
bash <(curl -s https://codecov.io/bash)
- script:
name: build debug
code: |
./gradlew --stacktrace app:assembleDebug -Dorg.gradle.parallel=false -Dorg.gradle.daemon=false
cp -r ./app/build/outputs/apk/* $WERCKER_REPORT_ARTIFACTS_DIR/
- script:
name: bundle install
code: |
bundle install --path .bundle
- script:
name: upload to fabric beta
code: |
bundle exec fastlane betaMaster