Commit f4730f3d authored by Robert Czechowski's avatar Robert Czechowski

.gitlab.ci: Unify CI steps to reduce caching overhead and set CACHE_COMPRESSION_LEVEL: 0

parent adde0333
Pipeline #721 passed with stage
in 2 minutes and 6 seconds
...@@ -3,12 +3,12 @@ image: 'rust:latest' ...@@ -3,12 +3,12 @@ image: 'rust:latest'
stages: stages:
- test - test
- build - build
- testdeploy
- deploy - deploy
variables: variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo CARGO_HOME: $CI_PROJECT_DIR/cargo
APT_CACHE_DIR: $CI_PROJECT_DIR/apt APT_CACHE_DIR: $CI_PROJECT_DIR/apt
CACHE_COMPRESSION_LEVEL: 0
...@@ -18,36 +18,19 @@ test: ...@@ -18,36 +18,19 @@ test:
- rustc --version - rustc --version
- cargo --version - cargo --version
- make stricttest - make stricttest
clippy:
stage: test
script:
- rustup component add clippy - rustup component add clippy
- make clippy - make clippy
documentation:
stage: build
script:
- make doc
only:
- master
- deploy
build: build:
stage: build stage: build
script: script:
- make dynrelease - make dynrelease
- make doc
only: only:
- master - master
- deploy - deploy
testdeploy:
stage: testdeploy
script:
# Setup SSH deploy keys # Setup SSH deploy keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )' - 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
......
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