Created
November 5, 2017 04:20
-
-
Save adstro/216af33d3af1a7d5752d4f565298a751 to your computer and use it in GitHub Desktop.
GitLab CI Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: openjdk:8-jdk | |
variables: | |
ANDROID_HOME: "${CI_PROJECT_DIR}/.ANDROID_HOME" | |
GRADLE_USER_HOME: "${CI_PROJECT_DIR}/.GRADLE_USER_HOME" | |
cache: | |
untracked: true | |
paths: | |
- "${ANDROID_HOME}/" | |
- "${GRADLE_USER_HOME}/caches/" | |
stages: | |
- build | |
- test | |
build: | |
stage: build | |
script: | |
- ./gradlew assembleDebug | |
lint: | |
stage: test | |
script: | |
- ./gradlew lint | |
artifacts: | |
name: "${CI_PROJECT_NAME}_${CI_JOB_NAME}" | |
when: always | |
paths: | |
- app/build/reports/lint-results.html | |
unitTest: | |
stage: test | |
script: | |
- ./gradlew test | |
artifacts: | |
name: "${CI_PROJECT_NAME}_${CI_JOB_NAME}" | |
when: always | |
paths: | |
- app/build/reports/tests | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment