language: rust
cache: cargo
dist: trusty
sudo: false
os:
- linux
- osx
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
rust:
- nightly
- beta
- stable
- 1.11.0
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
fi
script:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo build &&
travis-cargo test &&
travis-cargo bench;
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cargo build &&
cargo test &&
cargo bench;
fi
after_success:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo --only stable doc &&
travis-cargo --only stable doc-upload;
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
travis-cargo --only stable coveralls --no-sudo --verify;
./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/fractal_dto-*;
fi
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""