dist: xenial
language: rust
matrix:
include:
- os: linux
env: TARGET=armv7-unknown-linux-gnueabihf
rust: stable
- os: linux
env: TARGET=x86_64-apple-darwin
rust: stable
- os: linux
env: TARGET=armv7-unknown-linux-gnueabihf
rust: nightly
- os: linux
env: TARGET=x86_64-apple-darwin
rust: nightly
- os: osx
rust: stable
- os: osx
rust: nightly
sudo: true
-env:
global:
- LD_LIBRARY_PATH=/usr/local/lib
addons:
apt:
packages:
- libgtk-3-dev
- libmount-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi
script:
- rustc --version
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
rustup component add clippy-preview || touch cargo_failed;
fi
- RUST_BACKTRACE=1 cargo build
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ ! -f "cargo_failed" ]; then
cargo clippy;
fi