Update .gitlab-ci.yml file

This commit is contained in:
Raman deep
2022-01-27 19:14:07 +00:00
parent 251ca47983
commit 07fa1729be

42
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,42 @@
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/