Files
sickle-cell-app-usb/gitlab-ci
Raman deep 251ca47983 yaml file
2022-01-27 19:12:45 +00:00

43 lines
775 B
Plaintext

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/