Another attempt

This commit is contained in:
Clement Tsang 2019-12-30 22:01:34 -05:00
parent 7445d0601f
commit 1f7e90e659

View File

@ -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