2014-09-13 23:02:29 +00:00
|
|
|
language: rust
|
2018-09-20 17:53:49 +00:00
|
|
|
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2020-04-15 15:45:35 +00:00
|
|
|
# - osx
|
2018-09-20 17:53:49 +00:00
|
|
|
|
|
|
|
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:
|
2019-12-16 02:30:36 +00:00
|
|
|
- rust: beta
|
2018-09-20 17:53:49 +00:00
|
|
|
- rust: nightly
|
2018-04-12 20:33:11 +00:00
|
|
|
fast_finish: true
|
2016-07-29 11:50:59 +00:00
|
|
|
include:
|
2019-04-28 08:32:09 +00:00
|
|
|
- rust: 1.31.0
|
2020-01-28 02:15:28 +00:00
|
|
|
env: FEATURES=unix
|
2020-04-15 15:45:35 +00:00
|
|
|
# - 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
|
2020-04-15 15:45:35 +00:00
|
|
|
env: FEATURES=nightly,unix TEST_INSTALL=true
|
2016-07-29 12:30:56 +00:00
|
|
|
- rust: nightly
|
|
|
|
os: osx
|
2020-04-15 15:45:35 +00:00
|
|
|
env: FEATURES=nightly,macos TEST_INSTALL=true
|
2017-11-14 06:50:58 +00:00
|
|
|
- rust: nightly
|
|
|
|
os: linux
|
2020-01-28 02:15:28 +00:00
|
|
|
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
|
|
|
|
2015-12-25 08:07:53 +00:00
|
|
|
cache:
|
2017-12-30 08:01:55 +00:00
|
|
|
directories:
|
|
|
|
- $HOME/.cargo
|
|
|
|
|
2017-11-14 06:50:58 +00:00
|
|
|
sudo: true
|
2017-12-30 08:01:55 +00:00
|
|
|
|
2017-11-14 06:50:58 +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:
|
2017-11-14 06:50:58 +00:00
|
|
|
- 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
|