qrcode-rust/.travis.yml
2018-03-26 19:43:42 +08:00

43 lines
925 B
YAML

language: rust
sudo: false
dist: trusty
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- libiberty-dev
- gcc-multilib
matrix:
include:
- os: linux
rust: 1.20.0
- os: linux
rust: 1.24.1
- os: osx
rust: 1.24.1
- os: linux
rust: beta
- os: linux
rust: nightly
install:
- if [ "$TRAVIS_OS_NAME" = 'linux' ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
- rustup target add i686-$OS
script:
- cargo test --no-default-features
- cargo test
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench --features=bench; fi
- cargo test --target i686-$OS
after_success:
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | bash
- cargo kcov --coveralls