diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2019-12-30 22:01:34 -0500 |
---|---|---|
committer | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2019-12-30 22:01:34 -0500 |
commit | 1f7e90e659099c20f3b69a998f8cac3635f4f444 (patch) | |
tree | cbec9ceeaff1f2cea29fe920b6ee93689c46980e /.travis.yml | |
parent | 7445d0601f120859313b549e410988c33c443902 (diff) |
Another attempt
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 30 |
1 files changed, 13 insertions, 17 deletions
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 |