Skip to content

Instantly share code, notes, and snippets.

@adesamp
Created November 20, 2021 12:49
Show Gist options
  • Save adesamp/c33fe22da92f37936b1fed701c968003 to your computer and use it in GitHub Desktop.
Save adesamp/c33fe22da92f37936b1fed701c968003 to your computer and use it in GitHub Desktop.
simple gitlab CI
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