Skip to content

Instantly share code, notes, and snippets.

@crgarridos
Last active August 3, 2017 12:19
Show Gist options
  • Save crgarridos/661b97086f00bdd876aa78cf7113a8ba to your computer and use it in GitHub Desktop.
Save crgarridos/661b97086f00bdd876aa78cf7113a8ba to your computer and use it in GitHub Desktop.
image: jangrewe/gitlab-ci-android
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
stages:
- build
- test
build:
stage: build
script:
- ./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/apk/app-debug.apk
unitTests:
stage: test
script:
- ./gradlew test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment