Skip to content

Commit 62ac7e9

Browse files
committed
1 parent 59d9ec6 commit 62ac7e9

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@ rust:
44
- beta
55
- nightly
66
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
714
before_script:
815
- sudo apt-get update
916
- sudo apt-get install -y nodejs
1017
- npm i -g prettier
1118
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup component add rustfmt-preview clippy-preview) fi
1219
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup target add wasm32-unknown-unknown) fi
1320
- 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
1621
script:
1722
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
1823
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy -- -D warnings) fi
1924
- prettier --debug-check -l './**/*.json' './**/*.graphql'
2025
- cargo test --all
2126
- cargo build --manifest-path=./graphql_client/examples/github/Cargo.toml
2227
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml
23-
- 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

scripts/install_geckodriver.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)