From afa17586e63fc4e47cadd6a392fb94e6c69acbb8 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Thu, 12 Apr 2018 18:00:25 +0200 Subject: [PATCH] chore(ci): skip test on deploy --- Cargo.lock | 2 +- Cargo.toml | 2 +- appveyor.yml | 8 +++++--- ci/script.sh | 7 +++++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b023d0a..c82d3c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,7 +240,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "elan" -version = "0.3.0" +version = "0.3.1" dependencies = [ "clap 2.30.0 (registry+https://github.com/rust-lang/crates.io-index)", "download 0.4.0", diff --git a/Cargo.toml b/Cargo.toml index a9abb6b..93fc7c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "elan" -version = "0.3.0" +version = "0.3.1" authors = [ "Sebastian Ullrich " ] description = "Manage multiple rust installations with ease" diff --git a/appveyor.yml b/appveyor.yml index 7ed2a12..77a2036 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -40,9 +40,11 @@ test_script: - cargo build --target %TARGET% --release - cargo test --target %TARGET% - cargo test --target %TARGET% --release - # quick test - - set RUST_BACKTRACE=1 - - cargo run --target %TARGET% -- -y + # quick test, skip on deploy + - if [%APPVEYOR_REPO_TAG%]==[false] ( + set RUST_BACKTRACE=1 && + cargo run --target %TARGET% -- -y + ) before_deploy: - cargo rustc --target %TARGET% --release --bin elan-init -- -C lto diff --git a/ci/script.sh b/ci/script.sh index 9f3eaa0..86bd866 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -12,5 +12,8 @@ fi cross test --target $TARGET cross test --target $TARGET --release -# quick test -RUST_BACKTRACE=1 cargo run --target $TARGET -- -y +# quick test, skip on deploy +if [ -z $TRAVIS_TAG ] +then + RUST_BACKTRACE=1 cargo run --target $TARGET -- -y +fi