Run tests in the debug build.

Cargo has started failing to build the tests in the release configuration because tests must have panic=unwind, while the release profile is configured with panic=abort
This commit is contained in:
Magnus Hoff 2018-05-21 13:50:51 +02:00
parent 995737ff44
commit fc3bd0992a

View file

@ -14,8 +14,8 @@ before_install:
script: script:
- rustup target add x86_64-unknown-linux-musl - rustup target add x86_64-unknown-linux-musl
- cargo test --target=x86_64-unknown-linux-musl
- cargo build --release --target=x86_64-unknown-linux-musl - cargo build --release --target=x86_64-unknown-linux-musl
- cargo test --release --target=x86_64-unknown-linux-musl
- strip -s target/x86_64-unknown-linux-musl/release/sausagewiki - strip -s target/x86_64-unknown-linux-musl/release/sausagewiki
- XZ_OPT=-9 tar Jcf sausagewiki.tar.xz -C target/x86_64-unknown-linux-musl/release/ sausagewiki - XZ_OPT=-9 tar Jcf sausagewiki.tar.xz -C target/x86_64-unknown-linux-musl/release/ sausagewiki