Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
rust-git-workarea
Commits
19a81f8e
Commit
19a81f8e
authored
Nov 01, 2019
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab-ci: use sccache
parent
91482325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
.gitlab-ci.yml
.gitlab-ci.yml
+10
-4
No files found.
.gitlab-ci.yml
View file @
19a81f8e
...
...
@@ -15,12 +15,20 @@ before_script:
-
cargo fetch --locked
.cargo_clippy
:
&cargo_clippy
# Only use it if it's available; no need to fail the build due to something
# gone wrong here.
-
.gitlab/ci/sccache.sh && export RUSTC_WRAPPER=$PWD/.gitlab/sccache
-
rustup component add clippy
-
cargo clippy --frozen --tests --all --verbose -- -D warnings
-
"
.gitlab/sccache
--show-stats
||
:"
.cargo_build
:
&cargo_build
# Only use it if it's available; no need to fail the build due to something
# gone wrong here.
-
.gitlab/ci/sccache.sh && export RUSTC_WRAPPER=$PWD/.gitlab/sccache
-
cargo build $CARGO_BUILD_FROZEN --all --verbose
-
cargo test --frozen --all --no-run --verbose
-
"
.gitlab/sccache
--show-stats
||
:"
.cargo_test
:
&cargo_test
-
apt-get install -yqq --no-install-recommends git
...
...
@@ -36,6 +44,7 @@ before_script:
# remove this variable.
#CARGO_BUILD_FROZEN: --frozen
CARGO_UPDATE_POLICY
:
newest
SCCACHE_REDIS
:
redis://minmus:6379
.rust_stable
:
&rust_stable
image
:
"
rust:latest"
...
...
@@ -43,6 +52,7 @@ before_script:
variables
:
CARGO_BUILD_FROZEN
:
--frozen
CARGO_UPDATE_POLICY
:
newest
SCCACHE_REDIS
:
redis://minmus:6379
.rust_nightly
:
&rust_nightly
extends
:
.rust_stable
...
...
@@ -80,10 +90,6 @@ before_script:
-
.cargo-cache
-
Cargo.lock
-
target
cache
:
key
:
build-cache-$CI_JOB_NAME
paths
:
-
target
interruptible
:
true
.cargo_test_job
:
&cargo_test_job
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment