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
|
2019-03-28 18:39:59 +09:00
|
|
|
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:
|
2020-02-23 19:18:13 +09:00
|
|
|
- ./clippy.sh
|
2019-06-20 21:27:06 +09:00
|
|
|
after_success: |
|
2020-02-23 19:18:13 +09:00
|
|
|
cargo tarpaulin --exclude-files wasm parser/mod.rs --out Xml
|
2019-06-20 21:27:06 +09:00
|
|
|
bash <(curl -s https://codecov.io/bash)
|
2019-03-28 18:39:59 +09:00
|
|
|
- rust: stable
|
|
|
|
os: osx
|
|
|
|
env: RUST_BACKTRACE=1
|
|
|
|
script:
|
2019-06-20 21:27:06 +09:00
|
|
|
- cargo clean
|
2019-03-28 18:39:59 +09:00
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2019-06-26 17:30:14 +09:00
|
|
|
- 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"
|
|
|
|
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"
|
|
|
|
before_script:
|
|
|
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
|
|
|
|
script:
|
|
|
|
- bash ./build-wasm.sh
|