Created
November 20, 2021 12:49
-
-
Save adesamp/c33fe22da92f37936b1fed701c968003 to your computer and use it in GitHub Desktop.
simple gitlab CI
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: jangrewe/gitlab-ci-android | |
cache: | |
key: ${CI_PROJECT_ID} | |
paths: | |
- .gradle/ | |
before_script: | |
- chmod +x ./gradlew | |
stages: | |
- build | |
- inspection | |
linter: | |
stage: inspection | |
script: | |
- ./gradlew ktlint | |
only: | |
- merge_requests | |
linterFormat: | |
stage: inspection | |
script: | |
- ./gradlew ktlintFormat | |
only: | |
- merge_requests | |
unitTests: | |
stage: inspection | |
script: | |
- ./gradlew test | |
only: | |
- merge_requests | |
build: | |
stage: build | |
script: | |
- ./gradlew assembleDebug | |
artifacts: | |
paths: | |
- app/build/outputs/ | |
only: | |
- merge_requests | |
- dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment