Skip to content

Instantly share code, notes, and snippets.

@madnotdead
Last active November 7, 2017 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madnotdead/76b9efbec6d7a615447a99b3bfa0fb12 to your computer and use it in GitHub Desktop.
Save madnotdead/76b9efbec6d7a615447a99b3bfa0fb12 to your computer and use it in GitHub Desktop.
Gitlab-CI configuration file. tags belong to existing runners.
image: jangrewe/gitlab-ci-android:latest
before_script:
- if [ ! -d /cache$ANDROID_HOME ]; then mv $ANDROID_HOME /cache$ANDROID_HOME; fi
- export ANDROID_HOME=/cache$ANDROID_HOME
- cd LTCfastpay
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
stages:
- build
- test
- deploy
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
stage: build
script:
- ./gradlew -g /cache assembleRelease
artifacts:
paths:
- app/build/outputs/apk
tags:
- android
unitTests:
stage: test
script:
- ./gradlew -g /cache test
tags:
- android
deploy_uat:
stage: deploy
script:
- ./gradlew -g /cache uploadReleaseToHockeyApp
when: manual
tags:
- android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment