language: rust
sudo: required
email:
recipients:
- trishume@gmail.com
on_success: change on_failure: change
matrix:
include:
- rust: stable
addons:
apt:
packages:
- libssl-dev
- rust: beta
- rust: nightly
allow_failures:
- rust: nightly
cache:
- apt
- cargo
script:
- cargo build
- cargo test --features metadata
- make assets
- make syntest
- rm -Rf examples
- |
if [[ "$TRAVIS_RUST_VERSION" = stable ]]; then
cargo doc
fi
- rm -Rf examples && cargo test --lib --no-default-features
- cargo test --lib --no-default-features --features "assets dump-load-rs"
after_success: |
if [[ "$TRAVIS_RUST_VERSION" = stable ]]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
# Calculate test coverage
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi