Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: examples with servers, tests and travis config
- Loading branch information
1 parent
5b49844
commit ef10c91
Showing
47 changed files
with
3,721 additions
and
1,424 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
language: rust | ||
|
||
rust: | ||
- nightly | ||
- stable | ||
# - nightly # is it necessary? | ||
|
||
os: | ||
- linux | ||
# - windows # firefox problem | ||
- osx | ||
# Travis doesn't seem to handle Windows tests correctly. Triggers failures with | ||
# no reason listed, despite passing on local machine. | ||
# - windows | ||
- linux | ||
|
||
# https://levans.fr/rust_travis_cache.html | ||
cache: | ||
directories: | ||
- $HOME/.cargo | ||
|
||
before_cache: | ||
- rm -rf $HOME/.cargo/registry | ||
|
||
addons: | ||
firefox: latest | ||
cache: cargo | ||
before_script: | ||
- rustup target add wasm32-unknown-unknown | ||
- cargo install wasm-bindgen-cli --vers 0.2.33 || true | ||
- cargo install wasm-pack --vers 0.6.0 || true | ||
chrome: stable | ||
|
||
env: | ||
global: | ||
- RUST_BACKTRACE=1 | ||
|
||
matrix: | ||
allow_failures: | ||
- rust: nightly | ||
|
||
script: | ||
- cargo build --tests --target wasm32-unknown-unknown | ||
- wasm-pack test --headless --firefox | ||
- cargo install --force cargo-make # remove --force in the future (https://github.com/rust-lang/cargo/pull/6798) | ||
- cargo make all | ||
- cargo make test_h firefox | ||
- cargo make test_h chrome | ||
|
||
# TODO: make it faster ; useful link | ||
# https://www.reddit.com/r/rust/comments/9zpyww/idea_a_local_cache_of_compiled_dependencies_in/ | ||
# https://doc.rust-lang.org/cargo/reference/environment-variables.html - CARGO_TARGET_DIR | ||
# https://github.com/holmgr/cargo-sweep | ||
# https://github.com/matthiaskrgr/cargo-cache | ||
# https://github.com/mozilla/sccache | ||
# https://github.com/alexcrichton/cargo-vendor |
Oops, something went wrong.