Created
November 23, 2018 17:06
-
-
Save kpp/ca3b9a330b416f14f91e4195b5360be8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: rust | |
os: | |
- linux | |
- osx | |
rust: | |
- 1.26.0 | |
- stable | |
- beta | |
- nightly | |
env: | |
global: | |
- RUST_BACKTRACE=1 | |
branches: | |
except: | |
- /test.*/ | |
before_install: | |
- | | |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] | |
then | |
./scripts/verify-commit-messages.sh "$TRAVIS_COMMIT_RANGE" || exit 1; | |
./scripts/bootstrap-ubuntu-14-04.sh; | |
fi | |
- | | |
if [[ "$TRAVIS_OS_NAME" == "osx" ]] | |
then | |
./scripts/bootstrap-osx.sh; | |
fi | |
script: | |
- cargo build --verbose | |
- cargo test --verbose | |
- cargo doc | |
matrix: | |
allow_failures: | |
- rust: beta | |
- rust: nightly | |
include: | |
- os: linux | |
rust: nightly | |
env: | |
NAME: clippy | |
install: | |
- rustup component add clippy-preview | |
script: | |
- cargo clippy --verbose --all --tests | |
- os: linux | |
rust: stable | |
sudo: required | |
env: | |
NAME: coverage | |
addons: # needed for `cargo install cargo-travis` | |
apt: | |
packages: | |
- libcurl4-openssl-dev | |
- libelf-dev | |
- libdw-dev | |
- binutils-dev | |
- cmake | |
sources: | |
- kalakris-cmake | |
cache: | |
directories: | |
- /home/travis/.cargo | |
- /home/travis/build/tox-rs/tox/target/kcov-master | |
before_cache: | |
- rm -rf /home/travis/.cargo/registry | |
install: | |
- cargo install cargo-travis --debug || echo "cargo-travis has been already installed" | |
script: | |
- mkdir -p target # fix for cargo-coveralls | |
- cargo coveralls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment