Skip to content

Commit b59d620

Browse files
committed
Use workspaces and fix tests
* Enable a Cargo workspace for the repo * Disable tests for proc-macro crates * Move back to mounting source directory read-only * Refactor test invocation to only test one crate with `--all`
1 parent 7ea8884 commit b59d620

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ install:
3535
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
3636

3737
script:
38+
- cargo generate-lockfile
3839
- ci/run-docker.sh $TARGET $FEATURES
3940

4041
notifications:

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ keywords = ["std", "simd", "intrinsics"]
1111
categories = ["hardware-support"]
1212
license = "MIT/Apache-2.0"
1313

14+
[workspace]
15+
1416
[badges]
1517
travis-ci = { repository = "BurntSushi/stdsimd" }
1618
appveyor = { repository = "BurntSushi/stdsimd" }
@@ -34,4 +36,4 @@ opt-level = 3
3436
strict = [ "coresimd/strict" ]
3537
# Internal-usage only: enables only those intrinsics supported by Intel's
3638
# Software Development Environment (SDE).
37-
intel_sde = [ "coresimd/intel_sde" ]
39+
intel_sde = [ "coresimd/intel_sde" ]

ci/run-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ run() {
1919
--env TARGET=$target \
2020
--env FEATURES=$2 \
2121
--env STDSIMD_TEST_EVERYTHING \
22-
--volume `pwd`:/checkout \
22+
--volume `pwd`:/checkout:ro \
2323
--volume `pwd`/target:/checkout/target \
2424
--workdir /checkout \
2525
--privileged \

ci/run.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ echo "RUSTFLAGS=${RUSTFLAGS}"
2121
echo "FEATURES=${FEATURES}"
2222
echo "OBJDUMP=${OBJDUMP}"
2323

24-
cd coresimd
25-
cargo test --all --target $TARGET --features $FEATURES --verbose
26-
cargo test --all --release --target $TARGET --features $FEATURES --verbose
27-
cd ..
28-
cargo test --all --target $TARGET --features $FEATURES --verbose
29-
cargo test --all --release --target $TARGET --features $FEATURES --verbose
24+
cargo_test="cargo test --all --target=$TARGET --features $FEATURES --verbose"
25+
26+
$cargo_test
27+
$cargo_test --release

stdsimd-test/assert-instr-macro/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Alex Crichton <[email protected]>"]
55

66
[lib]
77
proc-macro = true
8+
test = false
89

910
[dependencies]
1011
proc-macro2 = { version = "0.1", features = ["unstable"] }

stdsimd-test/simd-test-macro/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ authors = ["Alex Crichton <[email protected]>"]
55

66
[lib]
77
proc-macro = true
8+
test = false
89

910
[dependencies]
1011
proc-macro2 = { version = "0.1", features = ["unstable"] }

0 commit comments

Comments
 (0)