2018-12-06 18:35:02 +01:00
|
|
|
image: circleci/android:api-28-alpha
|
2017-04-04 15:49:46 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2017-08-10 12:59:13 +02:00
|
|
|
cache:
|
|
|
|
key: "v1-$CI_COMMIT_REF_NAME"
|
|
|
|
paths:
|
|
|
|
- .gradle
|
2017-04-04 15:49:46 +00:00
|
|
|
script:
|
2017-08-10 12:59:13 +02:00
|
|
|
- ./gradlew --no-daemon --stacktrace dependencies || true
|
|
|
|
- ./gradlew --no-daemon --stacktrace assembleDebug
|
2019-06-03 14:12:48 +02:00
|
|
|
- mv app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk .
|
2017-04-04 15:49:46 +00:00
|
|
|
artifacts:
|
2017-04-05 20:19:59 +00:00
|
|
|
name: "${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}-${CI_BUILD_ID}"
|
2017-04-04 15:49:46 +00:00
|
|
|
paths:
|
2017-04-05 20:19:59 +00:00
|
|
|
- app-debug.apk
|
2017-04-04 15:49:46 +00:00
|
|
|
|
2017-08-10 12:59:13 +02:00
|
|
|
tests:
|
2017-04-04 15:49:46 +00:00
|
|
|
stage: test
|
2017-08-10 12:59:13 +02:00
|
|
|
cache:
|
|
|
|
key: "v1-$CI_COMMIT_REF_NAME"
|
|
|
|
paths:
|
|
|
|
- .gradle
|
|
|
|
policy: pull
|
2017-04-04 15:49:46 +00:00
|
|
|
script:
|
2019-06-03 14:12:48 +02:00
|
|
|
- ./gradlew --no-daemon --stacktrace -x fabricGenerateResourcesFdroidRelease -x fabricGenerateResourcesPlayRelease test
|
2017-04-07 19:15:42 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-08-10 12:59:13 +02:00
|
|
|
- app/build/reports/tests
|
2017-04-04 15:49:46 +00:00
|
|
|
|
2017-08-10 12:59:13 +02:00
|
|
|
lint:
|
2017-04-04 15:49:46 +00:00
|
|
|
stage: test
|
2017-08-10 12:59:13 +02:00
|
|
|
cache:
|
|
|
|
key: "v1-$CI_COMMIT_REF_NAME"
|
|
|
|
paths:
|
|
|
|
- .gradle
|
|
|
|
policy: pull
|
2017-04-04 15:49:46 +00:00
|
|
|
script:
|
2019-06-03 14:12:48 +02:00
|
|
|
- ./gradlew --no-daemon --stacktrace -x fabricGenerateResourcesFdroidRelease -x fabricGenerateResourcesPlayRelease lint
|
2017-04-07 19:15:42 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- app/build/reports
|