diff options
author | Azul <azul@riseup.net> | 2021-01-28 05:29:25 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2021-02-09 18:21:49 +0100 |
commit | 1979e16f29f902506843ad032400290b69324cc3 (patch) | |
tree | dcc64eb754641548ddd70d51266f15e5d7ae2b08 | |
parent | 5aa86da6bb81b2c82dffc88632be7d25cdcc1ead (diff) |
ci: Split bullseye, valgrind and build-bullseye jobs
-rw-r--r-- | .gitlab-ci.yml | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 83df9c4e..e610fd5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,28 +15,53 @@ after_script: - if [ -d $CARGO_TARGET_DIR ]; then du -sh $CARGO_TARGET_DIR; fi - if [ -d $CARGO_HOME ]; then du -sh $CARGO_HOME; fi -bullseye: +build-bullseye: tags: - linux stage: build image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild:latest dependencies: - codespell - script: - - SEQUOIA_CTEST_VALGRIND=/usr/bin/valgrind cargo test -p sequoia-openpgp-ffi - - cargo test --all --exclude sequoia-openpgp-ffi - make - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; false ; fi - if ! git diff --quiet sq ; then echo "Please commit the changes to sq/src/sq-usage.rs." ; false ; fi - if ! git diff --quiet sqv ; then echo "Please commit the changes to sqv/src/sqv-usage.rs." ; false ; fi - if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi + variables: + CARGO_TARGET_DIR: /target + CARGO_HOME: /cargo + RUSTFLAGS: -D warnings -A unused-parens + after_script: [] +valgrind: + tags: + - linux + stage: build + image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild:latest + dependencies: + - codespell + script: + - SEQUOIA_CTEST_VALGRIND=/usr/bin/valgrind cargo test -p sequoia-openpgp-ffi variables: CARGO_TARGET_DIR: /target CARGO_HOME: /cargo RUSTFLAGS: -D warnings -A unused-parens + after_script: [] +bullseye: + tags: + - linux + stage: build + image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-prebuild:latest + dependencies: + - codespell + script: + - cargo test --all --exclude sequoia-openpgp-ffi + variables: + CARGO_TARGET_DIR: /target + CARGO_HOME: /cargo + RUSTFLAGS: -D warnings -A unused-parens after_script: [] all_commits: |