mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-02-24 00:37:43 +11:00
Add web targets to travis (#1220)
* Add web targets to travis * Fix some bash syntax * Avoid crash on providing no features * Fix syntax error * Syntax? * Fix pleas * Fix features check * Add a comment * Add nightly builds
This commit is contained in:
parent
3ff4834bd5
commit
a557b3cfb6
1 changed files with 27 additions and 4 deletions
31
.travis.yml
31
.travis.yml
|
@ -58,6 +58,21 @@ matrix:
|
||||||
os: osx
|
os: osx
|
||||||
rust: stable
|
rust: stable
|
||||||
|
|
||||||
|
# wasm stdweb
|
||||||
|
- env: TARGET=wasm32-unknown-unknown WEB=web FEATURES=stdweb
|
||||||
|
os: linux
|
||||||
|
rust: stable
|
||||||
|
- env: TARGET=wasm32-unknown-unknown WEB=web FEATURES=stdweb
|
||||||
|
os: linux
|
||||||
|
rust: nightly
|
||||||
|
# wasm web-sys
|
||||||
|
- env: TARGET=wasm32-unknown-unknown FEATURES=web-sys
|
||||||
|
os: linux
|
||||||
|
rust: stable
|
||||||
|
- env: TARGET=wasm32-unknown-unknown FEATURES=web-sys
|
||||||
|
os: linux
|
||||||
|
rust: nightly
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- rustup self update
|
- rustup self update
|
||||||
- rustup target add $TARGET; true
|
- rustup target add $TARGET; true
|
||||||
|
@ -66,11 +81,19 @@ install:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo +stable fmt --all -- --check
|
- cargo +stable fmt --all -- --check
|
||||||
- cargo build --target $TARGET --verbose
|
# Install cargo-web to build stdweb
|
||||||
- cargo build --target $TARGET --features serde --verbose
|
- if [[ $WEB = "web" ]]; then cargo install -f cargo-web; fi
|
||||||
|
# Build without serde then with serde
|
||||||
|
- if [[ -z "$FEATURES" ]]; then
|
||||||
|
cargo $WEB build --target $TARGET --verbose;
|
||||||
|
else
|
||||||
|
cargo $WEB build --target $TARGET --features $FEATURES --verbose;
|
||||||
|
fi
|
||||||
|
- cargo $WEB build --target $TARGET --features serde,$FEATURES --verbose
|
||||||
# Running iOS apps on macOS requires the Simulator so we skip that for now
|
# Running iOS apps on macOS requires the Simulator so we skip that for now
|
||||||
- if [[ $TARGET != *-apple-ios ]]; then cargo test --target $TARGET --verbose; fi
|
# The web targets also don't support running tests
|
||||||
- if [[ $TARGET != *-apple-ios ]]; then cargo test --target $TARGET --features serde --verbose; fi
|
- if [[ $TARGET != *-apple-ios && $TARGET != wasm32-* ]]; then cargo test --target $TARGET --verbose; fi
|
||||||
|
- if [[ $TARGET != *-apple-ios && $TARGET != wasm32-* ]]; then cargo test --target $TARGET --features serde --verbose; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Add table
Reference in a new issue