Skip to content

Commit 6875540

Browse files
committed
Update travis configuration
Use multiple language support
1 parent 4b4e2e9 commit 6875540

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
language: rust
1+
language: rust, node_js
22
rust:
33
- stable
44
- beta
55
- nightly
6+
node_js:
7+
- "lts/*"
8+
- "8"
69
cache: cargo
710
before_script:
8-
- sudo apt-get update
9-
- sudo apt-get install -y nodejs
1011
- npm i -g prettier
1112
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (rustup component add rustfmt-preview clippy-preview) fi
1213
script:
1314
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo fmt --all -- --check) fi
1415
- if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then (cargo clippy) fi
15-
- prettier --debug-check -l './**/*.json'
16+
- prettier --debug-check -l './**/*.json' './**/*.graphql'
1617
- cargo test --all
1718
- cargo build --manifest-path=./graphql_client/examples/github/Cargo.toml
1819
- cargo build --manifest-path=./graphql_client_cli/Cargo.toml

0 commit comments

Comments
 (0)