summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-03-25 09:42:35 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-03-25 09:42:35 +0100
commitff2ff2e3f78bd75a8e67f9d25516756ffb3708ab (patch)
treeed0e32f141a7215c8665b2159c54ac7a88109d11 /.gitlab-ci.yml
parent9bf9a03ec16522d461563767ba4f9d3fd0aeea9e (diff)
ci: Improve tests for changes (or the lack thereof) in the source.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f56f2426..7d02ff97 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,10 +32,12 @@ bullseye:
script:
- make test # XXX: We cannot currently use valgrind, https://github.com/rust-lang/rust/issues/68979
- make
+ - if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; false ; fi
- make -C tool update-usage
- - if ! git diff --quiet ; then echo "Please run 'make -C tool update-usage' and commit the result." ; false ; fi
+ - if ! git diff --quiet tool ; then echo "Please run 'make -C tool update-usage' and commit the result." ; false ; fi
- make -C sqv update-usage
- - if ! git diff --quiet ; then echo "Please run 'make -C sqv update-usage' and commit the result." ; false ; fi
+ - if ! git diff --quiet sqv ; then echo "Please run 'make -C sqv update-usage' and commit the result." ; false ; fi
+ - if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi
variables:
CARGO_TARGET_DIR: $CI_PROJECT_DIR/../target.$CI_CONCURRENT_ID.bullseye