diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-07-26 15:44:01 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-07-27 10:46:22 +0200 |
commit | 41b88df2464306b8ea922d16c824e725f4f56b97 (patch) | |
tree | dbdd95adf953cb47218aa58d58dae29bc0e49040 /.gitlab-ci.yml | |
parent | 11113824ebf3d224ad643adfe6aab5d428a87c98 (diff) |
ci: Speed up the compilation.
- Disable incremental builds, cache cargo and target directory, add
some diagnostic output.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7b023ea..0955c1c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,24 @@ image: debian:buster test: script: + - if [ -d target ]; then find target | wc --lines; du -sh target; fi + - if [ -d cargo ]; then find cargo | wc --lines; du -sh cargo; fi - apt update -y -qq - apt install -y -qq git rustc cargo clang make pkg-config nettle-dev libssl-dev capnproto libsqlite3-dev + - rustc --version + - cargo --version + - clang --version - make test + - du -sh target + - du -sh cargo + +cache: + paths: + - Cargo.lock + - target/ + - cargo/ + +variables: + CARGO_HOME: $CI_PROJECT_DIR/cargo + CARGO_FLAGS: --color always + CARGO_INCREMENTAL: 0 |