From 528f20fd47dbcaf3824b69adaaa26ead601b6ebd Mon Sep 17 00:00:00 2001 From: mklkj Date: Tue, 4 Apr 2017 15:49:46 +0000 Subject: [PATCH] Build and test app on gitlab ci --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..02f3cc9c1 --- /dev/null +++ b/.gitlab-ci.yml @@ -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