bevy/crates/bevy_glam/.travis.yml
2020-05-03 16:55:17 -07:00

40 lines
999 B
YAML

language: rust
sudo: required
dist: trusty
addons:
apt:
packages:
- libssl-dev
cache: cargo
rust:
- stable
- beta
- nightly
env:
- CARGO_FEATURES="mint rand serde debug-glam-assert transform-types"
- CARGO_FEATURES="mint rand serde packed-vec3 debug-glam-assert transform-types"
- CARGO_FEATURES="mint rand serde scalar-math debug-glam-assert transform-types"
matrix:
allow_failures:
- rust: nightly
fast_finish: true
before_script: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo install cargo-tarpaulin
fi
script:
- cargo clean
- cargo build --features "$CARGO_FEATURES"
- cargo test --features "$CARGO_FEATURES"
- cargo bench --features "$CARGO_FEATURES" --no-run
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
cargo tarpaulin --features "$CARGO_FEATURES" --exclude-files src/f32/transform.rs --exclude-files benches/* --exclude-files tests/support/mod.rs --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
fi