[CI] Parallelize all jobs

This commit is contained in:
Luc Didry 2018-11-25 13:34:53 +01:00
parent 3e8e8c47c8
commit e26e18a8d4
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 4 additions and 19 deletions

View File

@ -6,35 +6,20 @@ before_script:
- chmod +x gradlew
stages:
- build
- build-and-test
- test
assembleDebug:
stage: build
stage: build-and-test
script:
- ./gradlew assembleDebug
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
policy: push
lintDebug:
stage: test
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
policy: pull
stage: build-and-test
script:
- ./gradlew -Pci --console=plain :app:lintFdroidDebug -PbuildDir=lint
debugTests:
stage: test
cache:
key: "$CI_COMMIT_SHA"
paths:
- app/build/outputs/
policy: pull
stage: build-and-test
script:
- ./gradlew -Pci --console=plain :app:testFdroidDebugUnitTest