Verified Commit 6ef39995 authored by Konstantin Kopper's avatar Konstantin Kopper
Browse files

[CI] Use build artifacts instead of cache

parent e0410bc4
Pipeline #13970 passed with stages
in 5 minutes and 39 seconds
......@@ -5,31 +5,18 @@ stages:
- test
- bundle
image: gradle:jdk11
default:
image: gradle:jdk11
variables:
GIT_SUBMODULE_STRATEGY: recursive
GRADLE_USER_HOME: "${CI_PROJECT_DIR}/gradle_home"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
cache: &cache
key: "$CI_PIPELINE_ID"
paths:
- .gradle
- gradle_home/
- build/
- lib/pseuco-java-compiler/build/
- src/main/resources/build.properties
- src/main/resources/licenses/LICENSE
- src/main/resources/include.zip
- src/main/resources/includeDebug.zip
- src/main/resources/includeRunner.zip
ktlint:
stage: lint
image: kkopper/ktlint:latest
variables: {}
cache: {}
script:
- ktlint
......@@ -38,6 +25,18 @@ classes:
dependencies: []
script:
- gradle classes
artifacts:
expire_in: 30 min
paths:
- .gradle
- gradle_home/
- build/
- lib/pseuco-java-compiler/build/
- src/main/resources/build.properties
- src/main/resources/licenses/LICENSE
- src/main/resources/include.zip
- src/main/resources/includeDebug.zip
- src/main/resources/includeRunner.zip
dokka:
stage: documentation
......@@ -50,9 +49,6 @@ dokka:
- gradle dokka
after_script:
- cp -R build/dokka .
cache:
<<: *cache
policy: pull
artifacts:
name: "pseuCo_IDE_${CI_PIPELINE_ID}-docs"
expire_in: 2 weeks
......@@ -68,9 +64,6 @@ tests:
- gradle :test # Only executes the test task of the main project. Thus the compiler tests are excluded.
after_script:
- cp -R build/reports/tests/test .
cache:
<<: *cache
policy: pull
artifacts:
name: "pseuCo_IDE_${CI_PIPELINE_ID}-tests"
when: always
......@@ -80,7 +73,7 @@ tests:
reports:
junit: build/test-results/test/TEST-*.xml
.jar: &jar
.jar:
stage: bundle
dependencies:
- classes
......@@ -88,12 +81,9 @@ tests:
- gradle jar
after_script:
- cp build/libs/pseuco-ide-*.jar .
cache:
<<: *cache
policy: pull
jar:
<<: *jar
extends: .jar
except:
- tags
after_script:
......@@ -105,7 +95,7 @@ jar:
- pseuco-ide-*.jar
release:
<<: *jar
extends: .jar
only:
- tags
after_script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment