Remove default build target because it breaks trybuild tests (#876)

This commit is contained in:
Justin Starry 2020-01-15 19:07:49 +08:00 committed by GitHub
parent 3d7bad917c
commit f3f52906e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -1,5 +1,2 @@
[build]
target = 'wasm32-unknown-unknown'
[target.'cfg(all(target_arch = "wasm32", not(cargo_web)))']
runner = 'wasm-bindgen-test-runner'

View File

@ -12,16 +12,5 @@ fi
cargo test --features wasm_test --target wasm32-unknown-unknown
cargo test --test macro_test
cargo test --test derive_props_test
# Disable cargo config for doc tests because the default target prevents doc
# tests from running
set +e
mv .cargo/config .cargo/config.tmp
cargo test --doc --all-features
doc_test_failed=$?
(cd crates/macro && cargo test --doc)
macro_doc_test_failed=$?
mv .cargo/config.tmp .cargo/config
if (($doc_test_failed)) || (($macro_doc_test_failed)); then
exit 1
fi