jsonpath/.travis.yml

118 lines
3.0 KiB
YAML
Raw Normal View History

2019-03-06 23:50:10 +09:00
language: rust
2019-06-20 21:27:06 +09:00
sudo: required
addons:
apt:
packages:
- libssl-dev
2019-03-06 23:50:10 +09:00
cache: cargo
2019-03-07 14:40:02 +09:00
branches:
only:
- master
- /^test-.*$/
2019-03-06 23:50:10 +09:00
matrix:
include:
2019-06-26 16:33:58 +09:00
- rust: stable
os: linux
2019-03-06 23:50:10 +09:00
env: RUST_BACKTRACE=1
2019-06-20 21:27:06 +09:00
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo install cargo-tarpaulin -f
fi
2019-06-25 22:42:21 +09:00
before_script:
- rustup component add clippy
2019-03-06 23:50:10 +09:00
script:
2019-06-20 21:27:06 +09:00
- cargo clean
2019-06-25 22:42:21 +09:00
- cargo clippy -- -D warnings
2019-03-06 23:50:10 +09:00
- cargo build --verbose --all
2019-06-25 22:42:21 +09:00
- cargo clippy --all-targets --all-features -- -D warnings -A clippy::cognitive_complexity
2019-03-06 23:50:10 +09:00
- cargo test --verbose --all
2019-06-25 23:31:52 +09:00
- cd wasm && cargo clippy -- -D warnings -A clippy::suspicious_else_formatting
- cd ../nodejs/native && cargo clippy -- -D warnings
2019-06-26 16:33:58 +09:00
- cd ../../
2019-06-20 21:27:06 +09:00
after_success: |
cargo tarpaulin --exclude-files nodejs wasm parser/mod.rs --out Xml
bash <(curl -s https://codecov.io/bash)
- rust: stable
os: osx
env: RUST_BACKTRACE=1
script:
2019-06-20 21:27:06 +09:00
- cargo clean
- cargo build --verbose --all
- cargo test --verbose --all
- language: node_js
os: linux
node_js:
- '11'
- '10'
- '9'
- '8'
before_install:
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- npm install -g neon-cli
- cd nodejs
- node -v
- npm -v
- npm install
script:
- npm test
- language: node_js
os: osx
node_js:
- '11'
- '10'
- '9'
- '8'
before_install:
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- npm install -g neon-cli
- cd nodejs
- node -v
- npm -v
- npm install
script:
2019-06-26 17:30:14 +09:00
- npm test
- language: node_js
os: linux
node_js:
- '11'
- '10'
- '9'
- '8'
before_install:
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- node -v
- npm -v
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
script:
- bash ./build-wasm.sh
- language: node_js
os: osx
node_js:
- '11'
- '10'
- '9'
- '8'
before_install:
- curl https://sh.rustup.rs -sSf > /tmp/rustup.sh
- sh /tmp/rustup.sh -y
- export PATH="$HOME/.cargo/bin:$PATH"
- source "$HOME/.cargo/env"
- node -v
- npm -v
before_script:
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
script:
- bash ./build-wasm.sh