Skip to content

Commit

Permalink
Fix CI to test custom WASM RNGs
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlr committed Sep 24, 2019
1 parent be439d1 commit af105eb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ matrix:
- rustup target add wasm32-wasi
# Get geckodriver
- wget -O geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.25.0/geckodriver-v0.25.0-linux64.tar.gz
- tar -xzf geckodriver.tar.gz
- tar -xzf geckodriver.tar.gz -C $HOME
# Get chromedirver (we cannot pin chrome version, so don't pin chromedriver version)
- export VERSION=$(wget -q -O - https://chromedriver.storage.googleapis.com/LATEST_RELEASE)
- wget -O chromedriver.zip https://chromedriver.storage.googleapis.com/$VERSION/chromedriver_linux64.zip
- unzip chromedriver.zip
- unzip chromedriver.zip -d $HOME
# Get cargo-web
- wget -O cargo-web.gz https://github.com/koute/cargo-web/releases/download/0.6.26/cargo-web-x86_64-unknown-linux-gnu.gz
- gunzip cargo-web.gz
Expand All @@ -68,12 +68,14 @@ matrix:
# wasi tests
- cargo test --target wasm32-wasi
# stdweb tests (Node, Chrome)
- cargo web test --nodejs --target=wasm32-unknown-unknown --features=stdweb
- cargo web test --target=wasm32-unknown-unknown --features=stdweb
- cd custom/stdweb
- cargo web test --nodejs --target=wasm32-unknown-unknown
- cargo web test --target=wasm32-unknown-unknown
# wasm-bindgen tests (Node, Firefox, Chrome)
- cargo test --target wasm32-unknown-unknown --features=wasm-bindgen
- GECKODRIVER=$PWD/geckodriver cargo test --target wasm32-unknown-unknown --features=test-in-browser
- CHROMEDRIVER=$PWD/chromedriver cargo test --target wasm32-unknown-unknown --features=test-in-browser
- cd ../wasm-bindgen
- cargo test --target wasm32-unknown-unknown
- GECKODRIVER=$HOME/geckodriver cargo test --target wasm32-unknown-unknown --features=test-in-browser
- CHROMEDRIVER=$HOME/chromedriver cargo test --target wasm32-unknown-unknown --features=test-in-browser

- name: "Linux, nightly, docs"
rust: nightly
Expand Down Expand Up @@ -193,6 +195,7 @@ before_script:
- export RUSTFLAGS="-D warnings"

script:
- cargo build --all
- cargo test
- cargo test --examples

Expand Down

0 comments on commit af105eb

Please sign in to comment.