Skip to content

Commit

Permalink
chore(appveyor,ci/script): use debug build with backtrace for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Apr 12, 2018
1 parent 6aae5fb commit 4cabdfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ test_script:
- cargo test --target %TARGET%
- cargo test --target %TARGET% --release
# quick test
- cargo run --target %TARGET% --release -- -y
- set RUST_BACKTRACE=1
- cargo run --target %TARGET% -- -y

before_deploy:
- cargo rustc --target %TARGET% --release --bin elan-init -- -C lto
Expand Down
2 changes: 1 addition & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ cross test --target $TARGET
cross test --target $TARGET --release

# quick test
cargo run --target $TARGET --release -- -y
RUST_BACKTRACE=1 cargo run --target $TARGET -- -y
2 changes: 1 addition & 1 deletion src/elan-cli/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ pub fn report_error(e: &Error) {
use std::env;
use std::ops::Deref;

if env::var("LEAN_BACKTRACE").as_ref().map(Deref::deref) == Ok("1") {
if env::var("RUST_BACKTRACE").as_ref().map(Deref::deref) == Ok("1") {
return true;
}

Expand Down

0 comments on commit 4cabdfe

Please sign in to comment.