CI optomizations

This commit is contained in:
Denis P
2019-12-06 10:13:21 +01:00
parent 1418b842aa
commit 1194e68166
+6 -9
View File
@@ -11,22 +11,17 @@ stages:
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: 3
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL: 0
CI_SERVER_NAME: "GitLab CI"
.collect-artifacts: &collect-artifacts
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 7 days
paths:
- artifacts/
.docker-env: &docker-env
image: parity/rust-builder:latest
before_script:
- cargo -vV
- rustc -vV
- rustup show
- cargo --version
- sccache -s
@@ -36,9 +31,11 @@ variables:
- schedules
- web
- /^[0-9]+$/ # PRs
dependencies: []
interruptible: true
retry:
max: 2
when:
when:
- runner_system_failure
- unknown_failure
- api_failure