File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ node_modules/
3
3
** /* .rs.bk
4
4
Cargo.lock
5
5
.idea
6
+ scripts /*
7
+ ! scripts /* .sh
Original file line number Diff line number Diff line change @@ -9,10 +9,15 @@ before_script:
9
9
- sudo apt-get install -y nodejs
10
10
- npm i -g prettier
11
11
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup component add rustfmt-preview clippy-preview) fi
12
+ - if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup target add wasm32-unknown-unknown) fi
13
+ - 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
12
16
script :
13
17
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
14
18
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy -- -D warnings) fi
15
19
- prettier --debug-check -l './**/*.json' './**/*.graphql'
16
20
- cargo test --all
17
21
- cargo build --manifest-path=./graphql_client/examples/github/Cargo.toml
18
22
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml
23
+ - if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cd graphql_client_web && cargo test --target wasm32-unknown-unknown) fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # This script is meant for CI only.
4
+
5
+ set -ex
6
+
7
+ wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
8
+ tar xzf geckodriver-v0.23.0-linux64.tar.gz
9
+ mv geckodriver /usr/local/bin/
You can’t perform that action at this time.
0 commit comments