Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ matrix:

- &windows
os: windows
env: TARGET=x86_64-pc-windows-msvc NO_ADD=1 EXE_EXT=.exe
env: RUST_TEST_THREADS=1 TARGET=x86_64-pc-windows-msvc NO_ADD=1 EXE_EXT=.exe
services: nil
language: bash

Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ build: false
test_script:
- cargo build --release --target %TARGET% --locked
- cargo run --release --target %TARGET% --locked -- --dump-testament
- set RUST_TEST_THREADS=1
- cargo test --release --target %TARGET%

notifications:
Expand Down
22 changes: 17 additions & 5 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

set -ex

Expand All @@ -21,8 +21,20 @@ cargo build --locked -v --release --target "$TARGET" $FEATURES
if [ -z "$SKIP_TESTS" ]; then
# shellcheck disable=SC2086
cargo run --locked --release --target "$TARGET" $FEATURES -- --dump-testament
# shellcheck disable=SC2086
cargo test --release -p download --target "$TARGET" $FEATURES
# shellcheck disable=SC2086
cargo test --release --target "$TARGET" $FEATURES

case $TARGET in
*windows*)
export RUST_TEST_THREADS=1
# shellcheck disable=SC2086
cargo test --release -p download --target "$TARGET" $FEATURES
# shellcheck disable=SC2086
cargo test --release --target "$TARGET" $FEATURES
;;
*)
# shellcheck disable=SC2086
cargo test --release -p download --target "$TARGET" $FEATURES
# shellcheck disable=SC2086
cargo test --release --target "$TARGET" $FEATURES
;;
esac
fi