Skip to content
Snippets Groups Projects
Commit a72abb1e authored by Denis_P's avatar Denis_P :field_hockey: Committed by Wei Tang
Browse files

Update CI (#125)

* ci uses up-to-date builder dockerfile and our new caching

* new dockerfile, probably temporarily, tested.
parent a0672ee7
Branches
No related merge requests found
Pipeline #36416 passed with stages
in 7 minutes and 50 seconds
......@@ -2,24 +2,19 @@ stages:
- test
- build
image: parity/rust:nightly
image: parity/shasper-ci:stretch
variables:
CI_SERVER_NAME: "GitLab CI"
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
RUST_TOOLCHAIN: "stable"
GIT_SUBMODULE_STRATEGY: "recursive"
cache:
key: "${CI_JOB_NAME}"
paths:
- ./target/
- ./.cargo/
CI_SERVER_NAME: "GitLab CI"
CARGO_HOME: "/ci-cache/shasper/cargo/${CI_JOB_NAME}"
SCCACHE_CACHE_SIZE: 50G
before_script:
- sccache -s
- ./scripts/init.sh
- export PATH="${CI_PROJECT_DIR}/cargo/bin/:$PATH"
- ./scripts/build.sh
......@@ -29,6 +24,7 @@ test-rust-stable:
stage: test
script:
- time cargo test --all --release --locked
- sccache -s
only:
- triggers
- tags
......@@ -37,7 +33,7 @@ test-rust-stable:
- web
- /^[0-9]+$/
tags:
- rust-stable
- linux-docker
#### stage: build
......@@ -45,9 +41,10 @@ test-rust-stable:
build-linux:
stage: build
script:
- cargo build --release
- time cargo build --release
- sccache -s
tags:
- rust-stable
- linux-docker
only:
- master
- tags
......
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