1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-11-24 05:26:11 -06:00
wulkanowy-mirror/.gitlab-ci.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

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