aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2019-11-06 19:39:57 -0500
committerJorge Aparicio <jorge@japaric.io>2019-11-06 19:39:57 -0500
commitda9c6a714eaa9420694dc6377c6e0167fe08f5d4 (patch)
tree304cac0d465480fe7783b222be1d3583b32227ab /ci
parent31b392fe3a6961596a0bd4e1bb24c0da2a9b7b42 (diff)
run cfail tests only when rustc --version == $MSRV
this version is more or less fixed so new releases of Rust (stable or nightly channel) are unlikely to break to build due to changes in diagnostic messages
Diffstat (limited to 'ci')
-rw-r--r--ci/script.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/ci/script.sh b/ci/script.sh
index 5c898a8..e87e50a 100644
--- a/ci/script.sh
+++ b/ci/script.sh
@@ -37,8 +37,11 @@ main() {
mkdir -p ci/builds
if [ $T = x86_64-unknown-linux-gnu ]; then
- # compile-fail tests
- cargo test --test single --target $T
+ if [ $TRAVIS_RUST_VERSION == 1.*.* ]; then
+ # test on a fixed version (MSRV) to avoid problems with changes in rustc diagnostics
+ # compile-fail tests
+ cargo test --test single --target $T
+ fi
if [ $TRAVIS_RUST_VERSION = nightly ]; then
# multi-core compile-pass tests