coreutils/.travis.yml

73 lines
1.9 KiB
YAML
Raw Normal View History

language: rust
2018-09-20 17:53:49 +00:00
rust:
- stable
- beta
os:
- linux
# - osx
2018-09-20 17:53:49 +00:00
env:
2020-05-01 21:35:55 +00:00
# sphinx v1.8.0 is bugged & fails for linux builds; so, force specific `sphinx` version
2018-09-20 17:53:49 +00:00
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: beta
2018-09-20 17:53:49 +00:00
- rust: nightly
fast_finish: true
2016-07-29 11:50:59 +00:00
include:
- rust: 1.31.0
env: FEATURES=unix
# - rust: stable
# os: linux
# env: FEATURES=unix TEST_INSTALL=true
# - rust: stable
# os: osx
# env: FEATURES=macos 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,unix TEST_INSTALL=true
2016-07-29 12:30:56 +00:00
- rust: nightly
os: osx
env: FEATURES=nightly,macos TEST_INSTALL=true
- rust: nightly
os: linux
env: FEATURES=nightly,feat_os_unix_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