fedilab-Android-App/.gitlab-ci.yml

56 lines
1.0 KiB
YAML
Raw Normal View History

2018-11-24 15:56:54 +01:00
image: hatsoftwares/mastalab-ci:latest
before_script:
- export ANDROID_HOME=/opt/android-sdk-linux
- export PATH=$PATH:/opt/android-sdk-linux/platform-tools/
- export GRADLE_USER_HOME=$(pwd)/.gradle/
- chmod +x gradlew
stages:
- prepare
- build
- test
prepare:
stage: prepare
script:
- ./gradlew tasks
2018-11-24 19:04:24 +01:00
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
- .gradle/
policy: push
2018-11-24 15:56:54 +01:00
assembleDebug:
stage: build
script:
- ./gradlew assembleDebug
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
- .gradle/
lintDebug:
stage: test
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
- .gradle/
policy: pull
script:
- ./gradlew --stacktrace -Pci --console=plain :app:lintFdroidDebug -PbuildDir=lint
debugTests:
stage: test
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
- .gradle/
policy: pull
script:
- ./gradlew --stacktrace -Pci --console=plain :app:testFdroidDebugUnitTest