Files
labsage-app/gitlab-ci__2_.yml
2022-01-28 21:04:12 +00:00

43 lines
775 B
YAML

before_script:
- export ANDROID_HOME="$HOME/Library/Android/sdk"
- bundle install
stages:
- build
- test
- quality_assurance
build_job:
stage: build
script:
- ./gradlew clean assembleRelease
artifacts:
paths:
- app/build/outputs/
unit_tests:
stage: test
script:
- ./gradlew test
artifacts:
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}"
when: on_failure
expire_in: 4 days
paths:
- app/build/reports/tests/
static_analysis:
stage: quality_assurance
script:
- ./gradlew lint
- ./gradlew checkstyle
- ./gradlew pmd
- ./gradlew findbugs
artifacts:
name: "reports_${CI_PROJECT_NAME}_${CI_BUILD_REF_NAME}"
when: on_failure
expire_in: 4 days
paths:
- app/build/reports/