Skip to content
Snippets Groups Projects
Commit 78cb1fee authored by Carl Jones's avatar Carl Jones
Browse files

Change CI to single task.

parent b86bb478
Branches
Tags test-2
No related merge requests found
...@@ -8,12 +8,7 @@ default: ...@@ -8,12 +8,7 @@ default:
stages: stages:
- compile
- analyse
- assemble
- build - build
- code-coverage
- mutate
- publish - publish
before_script: before_script:
...@@ -24,83 +19,36 @@ before_script: ...@@ -24,83 +19,36 @@ before_script:
- rm -fr .gradle/caches/*/plugin-resolution/ - rm -fr .gradle/caches/*/plugin-resolution/
- chmod +x gradlew - chmod +x gradlew
cache: cache:
key: gradle-cache-key
paths: paths:
- .gradle/wrapper - .gradle/wrapper
- .gradle/caches - .gradle/caches
policy: pull
compile:gradle:
stage: compile
only:
- tags
script:
- ./gradlew --continue compileJava
artifacts:
name: "$CI_JOB_NAME"
paths:
- ./build/classes/java/main
expire_in: 4 week
analyse:gradle:
stage: analyse
only:
- tags
script:
- ./gradlew --continue checkstyleMain
artifacts:
name: "$CI_JOB_NAME"
paths:
- ./build/reports/checkstyle/
expire_in: 4 week
assemble:gradle:
stage: assemble
only:
- tags
script:
- ./gradlew --continue shadowJar
artifacts:
name: "$CI_JOB_NAME"
paths:
- ./build/libs/*.jar
expire_in: 4 week
build:gradle: build:gradle:
stage: build stage: build
only: only:
- tags - tags
script: script:
- ./gradlew --continue build
- ./gradlew --continue buildAndReport
cache:
key: gradle-cache-key
paths:
- .gradle/wrapper
- .gradle/caches
artifacts: artifacts:
name: "$CI_JOB_NAME" name: "$CI_JOB_NAME"
paths: paths:
- ./build/classes/java/main
- ./build/reports/checkstyle/
- ./build/jacocoHtml/
- ./build/reports/tests/ - ./build/reports/tests/
- ./build/libs/*.jar - ./build/libs/*.jar
- ./build/jacoco/test.exec - ./build/jacoco/test.exec
expire_in: 4 week
code-coverage:gradle:
stage: code-coverage
only:
- tags
script:
- ./gradlew --continue jacocoTestReport
- ./gradlew --continue jacocoTestCoverageVerification
artifacts:
name: "$CI_JOB_NAME"
paths:
- ./build/jacocoHtml/
expire_in: 4 week expire_in: 4 week
mutate:gradle:
stage: mutate
only:
- tags
script:
- ./gradlew --continue pitest
pages: pages:
stage: publish stage: publish
...@@ -117,6 +65,12 @@ pages: ...@@ -117,6 +65,12 @@ pages:
- pwd - pwd
- ls -lR public - ls -lR public
cache:
key: gradle-cache-key
paths:
- .gradle/wrapper
- .gradle/caches
artifacts: artifacts:
paths: paths:
- public - public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment