UntrackMe-app-android-redir.../.gitlab-ci.yml

44 lines
790 B
YAML
Raw Normal View History

2020-01-26 09:11:13 +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/
- chmod +x gradlew
stages:
- build-and-test
- tag
- toot
.no-upload: &no-upload
stage: build-and-test
retry: 2
assembleDebug:
<<: *no-upload
cache:
key: "${CI_COMMIT_TAG}"
paths:
2020-05-04 18:31:42 +02:00
- app/build/outputs/apk/lite/debug/app-lite-debug.apk
- app/build/outputs/apk/fullLinks/debug/app-fullLinks-debug.apk
2020-01-26 09:11:13 +01:00
policy: push
script:
- ./gradlew assembleDebug
lintDebug:
<<: *no-upload
script:
- ./gradlew -Pci --console=plain :app:lint -PbuildDir=lint
except:
- tags
debugTests:
<<: *no-upload
script:
- ./gradlew -Pci --console=plain :app:test
except:
- tags