Last active
August 29, 2015 14:04
-
-
Save errordeveloper/33dc93edd2171c6daf9d to your computer and use it in GitHub Desktop.
Travis config for a Rust project without `rustup.sh`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: c | |
os: | |
- linux | |
- osx | |
matrix: | |
- os: osx | |
env: TARGET_TUPLE='x86_64-apple-darwin' | |
- os: linux | |
env: TARGET_TUPLE='x86_64-unknown-linux-gnu' | |
install: | |
## I don't have multi-os feature enabled yet... | |
- "[ -z ${TARGET_TUPLE} ] && export TARGET_TUPLE='x86_64-unknown-linux-gnu'" | |
- "export RUST_TARBALL=rust-nightly-${TARGET_TUPLE}.tar.gz" | |
- "export CARGO_TARBALL=cargo-nightly-${TARGET_TUPLE}.tar.gz" | |
- "curl -O --retry 3 http://static.rust-lang.org/dist/${RUST_TARBALL}" | |
- "curl -O --retry 3 http://static.rust-lang.org/cargo-dist/${CARGO_TARBALL}" | |
- "tar xf ${RUST_TARBALL}" | |
- "tar xf ${CARGO_TARBALL}" | |
before_script: | |
- "export LD_LIBRARY_PATH=${PWD}/rust-nightly-${TARGET_TUPLE}/lib" | |
- "export PATH=${PWD}/rust-nightly-${TARGET_TUPLE}/bin:${PATH}" | |
- "export PATH=${PWD}/cargo-nightly-${TARGET_TUPLE}/bin:${PATH}" | |
- 'rustc --version' | |
- 'cargo --version' | |
script: | |
- cargo test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment