mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
fix Travis CI configuration
This commit is contained in:
parent
9cbf8b5856
commit
e5f67765e3
1 changed files with 20 additions and 19 deletions
39
.travis.yml
39
.travis.yml
|
@ -1,22 +1,29 @@
|
||||||
language: rust
|
language: rust
|
||||||
|
|
||||||
|
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'
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- rust: nightly
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- rust: 1.27.0
|
- rust: 1.27.0
|
||||||
os: linux
|
|
||||||
env: FEATURES=''
|
|
||||||
- rust: stable
|
- rust: stable
|
||||||
os: linux
|
os: linux
|
||||||
env: FEATURES=''
|
env: TEST_INSTALL=true
|
||||||
- rust: stable
|
- rust: stable
|
||||||
os: osx
|
os: osx
|
||||||
env: FEATURES=''
|
env: TEST_INSTALL=true
|
||||||
- rust: beta
|
|
||||||
os: linux
|
|
||||||
env: FEATURES=''
|
|
||||||
- rust: beta
|
|
||||||
os: osx
|
|
||||||
env: FEATURES=''
|
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
os: linux
|
os: linux
|
||||||
env: FEATURES=nightly
|
env: FEATURES=nightly
|
||||||
|
@ -26,10 +33,6 @@ matrix:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
os: linux
|
os: linux
|
||||||
env: FEATURES=nightly,redox CC=x86_64-unknown-redox-gcc CARGO_ARGS='--no-default-features --target=x86_64-unknown-redox' REDOX=1
|
env: FEATURES=nightly,redox CC=x86_64-unknown-redox-gcc CARGO_ARGS='--no-default-features --target=x86_64-unknown-redox' REDOX=1
|
||||||
allow_failures:
|
|
||||||
- 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
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
@ -41,20 +44,18 @@ before_install:
|
||||||
- if [ $REDOX ]; then ./.travis/redox-toolchain.sh; fi
|
- if [ $REDOX ]; then ./.travis/redox-toolchain.sh; fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install python-pip && sudo pip install sphinx; fi
|
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install python-pip && sudo pip install $SPHINX_VERSIONED; fi
|
||||||
- |
|
- |
|
||||||
if [ $TRAVIS_OS_NAME = osx ]; then
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
||||||
brew update
|
brew update
|
||||||
brew upgrade python
|
brew upgrade python
|
||||||
pip3 install sphinx
|
pip3 install $SPHINX_VERSIONED
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build $CARGO_ARGS --features "$FEATURES"
|
- cargo build $CARGO_ARGS --features "$FEATURES"
|
||||||
- if [ ! $REDOX ]; then cargo test $CARGO_ARGS --features "$FEATURES" --no-fail-fast; fi
|
- if [ ! $REDOX ]; then cargo test $CARGO_ARGS --features "$FEATURES" --no-fail-fast; fi
|
||||||
- mkdir installdir_test
|
- if [ -n "$TEST_INSTALL" ]; then mkdir installdir_test; DESTDIR=installdir_test make install; [ `ls installdir_test/usr/local/bin | wc -l` -gt 0 ]; fi
|
||||||
- DESTDIR=installdir_test make install
|
|
||||||
- "[ `ls installdir_test/usr/local/bin | wc -l` -gt 0 ]"
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue