You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,25 @@ rust:
4
4
- beta
5
5
- nightly
6
6
cache: cargo
7
+
addons:
8
+
firefox: latest
9
+
before_install:
10
+
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz) fi
11
+
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (mkdir geckodriver) fi
12
+
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (tar -xzf geckodriver-v0.23.0-linux64.tar.gz -C geckodriver) fi
13
+
- export PATH=$PATH:$PWD/geckodriver
7
14
before_script:
8
15
- sudo apt-get update
9
16
- sudo apt-get install -y nodejs
10
17
- npm i -g prettier
11
18
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup component add rustfmt-preview clippy-preview) fi
12
19
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup target add wasm32-unknown-unknown) fi
13
20
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo install -f wasm-bindgen-cli) fi
14
-
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (sudo apt-get install -y firefox) fi
15
-
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (./scripts/install_geckodriver.sh) fi
16
21
script:
17
22
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
18
23
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy -- -D warnings) fi
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (GECKODRIVER=`pwd`/geckodriver cargo test --manifest-path=./graphql_client_web/Cargo.toml --target wasm32-unknown-unknown) fi
28
+
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (xvfb-run cargo test --manifest-path=./graphql_client_web/Cargo.toml --target wasm32-unknown-unknown) fi
0 commit comments