qrcode-rust/.travis.yml
2017-05-18 21:40:15 +08:00

49 lines
1.1 KiB
YAML

# Copied from https://github.com/kennytm/extprim/blob/master/.travis.yml :)
language: rust
sudo: false
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- gcc-multilib
os:
- linux
- osx
rust:
- 1.17.0
- beta
- 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
- 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
script:
- cargo test --no-default-features
- cargo test
- if [ "$TRAVIS_RUST_VERSION" = 'nightly' ]; then cargo bench; fi
after_success:
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | bash
- cargo kcov --coveralls -- --verify