qrcode-rust/.travis.yml

56 lines
1.5 KiB
YAML
Raw Normal View History

2016-05-14 10:43:38 -05:00
# Copied from https://github.com/kennytm/extprim/blob/master/.travis.yml :)
2014-08-18 16:10:50 -05:00
language: rust
sudo: false
2016-05-14 10:43:38 -05:00
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- gcc-multilib
os:
- linux
- osx
rust:
- 1.8.0
2016-06-04 11:27:39 -05:00
- 1.9.0
2016-05-14 10:43:38 -05:00
- nightly
env:
matrix:
- ARCH=x86_64
- ARCH=i686
matrix:
2016-05-14 10:43:38 -05:00
allow_failures:
- env: ARCH=i686
2016-06-04 11:27:39 -05:00
rust: 1.8.0
# Note: on 1.8.0, all i686 build panics with the message "Box<Any>", cause all `should_panic` tests to fail.
2016-05-14 10:43:38 -05:00
install:
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
- SYSROOT=$(rustc --print sysroot)
- export HOST=$ARCH-$OS
- |
if [ ! -d "$SYSROOT/lib/rustlib/$HOST" ]; then
curl -SfLO "https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" &&
tar xf "rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz" "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" &&
mv "rust-$TRAVIS_RUST_VERSION-$HOST/rust-std-$HOST/lib/rustlib/$HOST" "$SYSROOT/lib/rustlib"
fi
script:
- cargo test --target "$HOST"
2016-06-04 11:27:39 -05:00
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench --target "$HOST" --features bench; fi
2015-01-01 06:33:11 -06:00
after_success:
2016-06-04 11:27:39 -05:00
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | bash
- cargo kcov --target "$HOST" --coveralls -- --verify