diff --git a/.travis.yml b/.travis.yml index 69b05081..0d5c3abc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,28 +3,24 @@ rust: - stable - beta - nightly +os: + - linux + - osx + - windows jobs: allow_failures: - rust: nightly - env: TARGET=x86_64-pc-windows-gnu # Seems to cause problems - include: - - os: linux - env: - - RUST_BACKTRACE=1 - - TARGET=x86_64-unknown-linux-gnu - - os: osx - env: - - RUST_BACKTRACE=1 - - TARGET=x86_64-apple-darwin - - os: windows - env: - - RUST_BACKTRACE=1 - - TARGET=x86_64-pc-windows-msvc - - os: windows - env: - - RUST_BACKTRACE=1 - - TARGET=x86_64-pc-windows-gnu +before_install: + - export RUST_BACKTRACE=1 + - if [[ $TRAVIS_OS_NAME == "linux" ]]; then + export TARGET=x86_64-unknown-linux-gnu + elif [[ $TRAVIS_OS_NAME == "windows" ]]; then + export TARGET=x86_64-pc-windows-msvc + elif [[ $TRAVIS_OS_NAME == "osx" ]] then + export TARGET=x86_64-apple-darwin + fi before_script: rustup target add $TARGET script: - cargo build --release --target $TARGET