From 184eaddfc0b1e258a8044c8ec706a944acab5ddc Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Tue, 20 Aug 2019 16:46:39 +0200 Subject: [PATCH] reduce number of times examples are tested in CI --- .appveyor.yml | 2 +- .gitlab-ci.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 6ab92e8..01796a6 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -37,7 +37,7 @@ test_script: - cargo +beta-%TARGET% check --all-targets --features fail-on-warnings - cargo +beta-%TARGET% test --release --features "fail-on-warnings f16 serde" - cargo +beta-%TARGET% fmt -- --check - - cargo +1.34.2-%TARGET% test --features "fail-on-warnings f16 serde" + - cargo +1.34.2-%TARGET% test --lib --features "fail-on-warnings f16 serde" after_test: - C:\msys64\usr\bin\bash -c "if [ -d ""$USERPROFILE/.cargo/registry/cache"" ]; then cd ""$USERPROFILE/.cargo/registry""; /c/msys64/usr/bin/find cache -name \*.crate; fi" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b76f9c..8a93835 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,8 +35,8 @@ x86_64-gnulinux: - cargo +beta-$TARGET test --features "fail-on-warnings f16 serde" - cargo +beta-$TARGET test --release --features "fail-on-warnings f16 serde" - cargo +beta-$TARGET fmt -- --check - - cargo +1.34.2-$TARGET test --features "fail-on-warnings f16 serde" - - cargo +1.34.2-$TARGET test --release --features "fail-on-warnings f16 serde" + - cargo +1.34.2-$TARGET test --lib --features "fail-on-warnings f16 serde" + - cargo +1.34.2-$TARGET test --release --lib --features "fail-on-warnings f16 serde" i686-gnulinux: image: i386/rust:1 @@ -54,5 +54,5 @@ i686-gnulinux: - cargo +beta-$TARGET test --features "fail-on-warnings f16 serde" - cargo +beta-$TARGET test --release --features "fail-on-warnings f16 serde" - cargo +beta-$TARGET fmt -- --check - - cargo +1.34.2-$TARGET test --features "fail-on-warnings f16 serde" - - cargo +1.34.2-$TARGET test --release --features "fail-on-warnings f16 serde" + - cargo +1.34.2-$TARGET test --lib --features "fail-on-warnings f16 serde" + - cargo +1.34.2-$TARGET test --release --lib --features "fail-on-warnings f16 serde"