Use wasm32-unknown-unknown as the default build target (#702)

* Use wasm32-unknown-unknown as the default build target

* Print rustup installed targets

* Add doc_test alias
This commit is contained in:
Justin Starry 2019-10-13 10:51:47 -04:00 committed by Justin Starry
parent 322a1f9236
commit 6fdf17757f
5 changed files with 13 additions and 2 deletions

View File

@ -1,2 +1,8 @@
[target.'cfg(not(not(feature = "doc_test")))']
target = 'wasm32-unknown-unknown'
[target.'cfg(all(target_arch = "wasm32", not(cargo_web)))']
runner = 'wasm-bindgen-test-runner'
[alias]
doc_test = "test --doc --features doc_test"

View File

@ -36,5 +36,6 @@ install:
- ./ci/install_cargo_web.sh
script:
- rustup target list --installed
- cargo fmt --all -- --check
- CHROMEDRIVER=$(pwd)/chromedriver ./ci/run_tests.sh

View File

@ -53,6 +53,7 @@ wasm-bindgen-test = "=0.2.50"
[features]
default = []
doc_test = []
web_test = []
wasm_test = []
yaml = ["serde_yaml"]

View File

@ -33,10 +33,10 @@ echo "Testing derive props macro..."
cargo test --test derive_props_test
echo "Testing docs"
cargo test --doc
cargo doc_test
echo "Testing macro docs..."
(cd crates/macro && cargo test)
(cd crates/macro && cargo doc_test)
check_example() {
echo "Checking example [$2]"

View File

@ -30,3 +30,6 @@ yew = { path = "../.." }
[build-dependencies]
autocfg = "0.1.3"
[features]
doc_test = []