Disable some tests for crates in their manifest (#725)

Instead of passing `--exclude` in CI disable them in the manifest so
`--all` can work with fewer flags locally as well.
This commit is contained in:
Alex Crichton
2019-12-16 11:00:50 -06:00
committed by GitHub
parent fe34c8e2e5
commit 5d399d48ab
3 changed files with 7 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ jobs:
- run: cargo fetch - run: cargo fetch
# Build and test all features except for lightbeam # Build and test all features except for lightbeam
- run: cargo test --features test_programs --all --exclude lightbeam --exclude wasmtime-wasi-c --exclude wasmtime-py -- --nocapture - run: cargo test --features test_programs --all --exclude lightbeam -- --nocapture
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings" RUSTFLAGS: "-D warnings"
@@ -294,7 +294,7 @@ jobs:
- run: $CENTOS cargo build --release --manifest-path crates/api/Cargo.toml - run: $CENTOS cargo build --release --manifest-path crates/api/Cargo.toml
shell: bash shell: bash
# Test what we just built # Test what we just built
- run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime-wasi-c --exclude wasmtime-py --exclude wasmtime --exclude wasmtime-fuzzing - run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime --exclude wasmtime-fuzzing
shell: bash shell: bash
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1

View File

@@ -13,6 +13,7 @@ edition = "2018"
[lib] [lib]
name = "_wasmtime" name = "_wasmtime"
crate-type = ["cdylib"] crate-type = ["cdylib"]
test = false
[dependencies] [dependencies]
wasmtime = { path = "../../api" } wasmtime = { path = "../../api" }

View File

@@ -28,3 +28,7 @@ bindgen = "0.51.0"
[badges] [badges]
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }
[lib]
test = false
doctest = false