coreutils/.travis.yml

71 lines
1.7 KiB
YAML
Raw Normal View History

language: rust
2018-09-20 17:53:49 +00:00
rust:
- stable
- beta
os:
- linux
- osx
env:
# sphinx v1.8.0 is bugged & fails for linux builds; so, force specfic `sphinx` version
global: FEATURES='' TEST_INSTALL='' SPHINX_VERSIONED='sphinx==1.7.8'
2016-07-29 11:50:59 +00:00
matrix:
2018-09-20 17:53:49 +00:00
allow_failures:
- rust: nightly
fast_finish: true
2016-07-29 11:50:59 +00:00
include:
- rust: 1.31.0
2016-07-29 11:50:59 +00:00
- rust: stable
2016-07-29 12:30:56 +00:00
os: linux
2018-09-20 17:53:49 +00:00
env: TEST_INSTALL=true
2016-07-29 12:30:56 +00:00
- rust: stable
os: osx
2018-09-20 17:53:49 +00:00
env: TEST_INSTALL=true
2016-07-29 11:50:59 +00:00
- rust: nightly
2016-07-29 12:30:56 +00:00
os: linux
env: FEATURES=nightly
- rust: nightly
os: osx
2016-07-29 11:50:59 +00:00
env: FEATURES=nightly
- rust: nightly
os: linux
env: FEATURES=nightly,redox CC=x86_64-unknown-redox-gcc CARGO_ARGS='--no-default-features --target=x86_64-unknown-redox' REDOX=1
2017-12-30 08:01:55 +00:00
cache:
2017-12-30 08:01:55 +00:00
directories:
- $HOME/.cargo
sudo: true
2017-12-30 08:01:55 +00:00
before_install:
- if [ $REDOX ]; then ./.travis/redox-toolchain.sh; fi
2017-12-30 08:01:55 +00:00
2018-06-09 00:15:44 +00:00
install:
2018-09-20 17:53:49 +00:00
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install python-pip && sudo pip install $SPHINX_VERSIONED; fi
2018-06-09 00:15:44 +00:00
- |
if [ $TRAVIS_OS_NAME = osx ]; then
brew update
brew upgrade python
2018-09-20 17:53:49 +00:00
pip3 install $SPHINX_VERSIONED
2018-06-09 00:15:44 +00:00
fi
2013-10-22 14:11:56 +00:00
script:
- cargo build $CARGO_ARGS --features "$FEATURES"
- if [ ! $REDOX ]; then cargo test $CARGO_ARGS --features "$FEATURES" --no-fail-fast; fi
2018-09-20 17:53:49 +00:00
- if [ -n "$TEST_INSTALL" ]; then mkdir installdir_test; DESTDIR=installdir_test make install; [ `ls installdir_test/usr/local/bin | wc -l` -gt 0 ]; fi
2017-12-30 08:01:55 +00:00
addons:
apt:
packages:
- libssl-dev
after_success: |
if [ "$TRAVIS_OS_NAME" = linux -a "$TRAVIS_RUST_VERSION" = stable ]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi