qrcode-rust/.travis.yml

49 lines
1.1 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:
2017-05-18 08:35:01 -05:00
- 1.17.0
- beta
2016-05-14 10:43:38 -05:00
- nightly
env:
matrix:
- ARCH=x86_64
- ARCH=i686
install:
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
- export HOST=$ARCH-$OS
2017-05-18 08:35:01 -05:00
- curl -SfLO "https://static.rust-lang.org/rustup/dist/$HOST/rustup-init"
- chmod u+x rustup-init
- ./rustup-init -y --default-host "$HOST" --default-toolchain "$TRAVIS_RUST_VERSION"
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- rustc -vV
- cargo -vV
2016-05-14 10:43:38 -05:00
script:
2017-05-18 08:35:01 -05:00
- cargo test --no-default-features
- cargo test
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench; fi
2015-01-01 06:33:11 -06:00
after_success:
2016-06-04 11:27:39 -05:00
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | bash
2017-05-18 08:35:01 -05:00
- cargo kcov --coveralls -- --verify
2016-06-04 11:27:39 -05:00