DnDApplication/.gitlab-ci.yml

42 lines
No EOL
778 B
YAML

image: mobiledevops/android-sdk-image:33.0.2
stages:
- check
- build
- test
cache:
- key: $CI_PROJECT_ID-$CI_COMMIT_REF_SLUG
fallback_keys:
- $CI_PROJECT_ID-$CI_DEFAULT_BRANCH
- $CI_PROJECT_ID-default
paths:
- .gradle/caches
- .gradle/wrapper
before_script:
- export GRADLE_USER_HOME=$PWD/.gradle
lintDebug:
stage: check
script:
- ./gradlew --console=plain :app:lintDebug
artifacts:
paths:
- app/build/reports/lint-results-debug.html
expose_as: "lint-report"
when: always
assembleDebug:
interruptible: true
stage: build
script:
- ./gradlew --console=plain assembleDebug
artifacts:
paths:
- app/build/outputs/
testDebug:
stage: test
script:
- ./gradlew --console=plain test