summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJordan Petridis <jpetridis@gnome.org>2020-11-03 19:50:42 +0200
committerJordan Petridis <jpetridis@gnome.org>2020-11-03 19:55:47 +0200
commit2ddf50185bcd8eb60c44e32d3acde7945050371e (patch)
tree967ca5d4dc12678ed7e58f6fa7f61518a4806c0a /.gitlab-ci.yml
parent91f3f349859a5e3c2417a631cab13025d5084fbe (diff)
downloadlibrsvg-2ddf50185bcd8eb60c44e32d3acde7945050371e.tar.gz
ci: turn rustc warnings into errors in the CI
followup of !431 [1] deny(warnings) is an anti-pattern as a newer release of the compiler can cause working/released builds to stop compilling for downstreams. Having to export a RUST_FLAG is not the prettiest, but its the best we got atm [2] [1] https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/431 [2] https://github.com/rust-lang/cargo/issues/3591
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b59b50e4..78755545 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,8 @@ variables:
AMD64_DEBIAN_TESTING: "registry.gitlab.gnome.org/gnome/librsvg-oci-images/amd64/debian:testing"
LIBRSVG_DEBUG: "yes"
+ # Turn compiler warnings into errors
+ RUSTFLAGS: '-D warnings'
image: $AMD64_OPENSUSE_TUMBLEWEED