Build and test app on gitlab ci

This commit is contained in:
mklkj 2017-04-04 15:49:46 +00:00 committed by RicomenPL
parent 2152da687c
commit 528f20fd47

28
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,28 @@
image: registry.gitlab.com/showcheap/android-ci:T24-B25.0.1
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
unitTests:
stage: test
script:
- ./gradlew test
functionalTests:
stage: test
script:
- ./gradlew check