Update .gitlab-ci.yml file
This commit is contained in:
42
.gitlab-ci.yml
Normal file
42
.gitlab-ci.yml
Normal 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/
|
||||
|
||||
Reference in New Issue
Block a user