sudo: false
language: rust
env:
global:
- CRATE_NAME=cobalt
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-apple-darwin
os: osx
- env: TARGET=x86_64-unknown-linux-gnu
rust: beta
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: COVERALLS=0.0.9
install:
- travis_wait cargo install cargo-travis --force --vers $COVERALLS
script:
- cmake --version
- cargo coverage || true
- env: RUSTFMT
rust: 1.27.0 install:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --write-mode=diff
- env: RUSTFLAGS="-D warnings"
rust: 1.27.0 install:
script:
- cargo check --tests
- env: CLIPPY
rust: nightly-2018-07-17
install:
- rustup component add clippy-preview
script:
- cargo clippy --all-features -- -D clippy
install:
- rustc -Vv
- cargo -V
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
- source ~/.cargo/env || true
script:
- cargo test --verbose
- cargo test --verbose --no-default-features
before_deploy:
- sh ci/before_deploy.sh
branches:
only:
- /^v\d+\.\d+\.\d+.*$/
- master
deploy:
provider: releases
api_key:
secure: "R4P4oXBODF9LZW/ht2putfF4tg74aOjWVRZWu7ia4ORdpEQ++RkgO32SQLZsLeXsJbb/qbTa06FfD6MC8MWdmek4DvwlSAiHrykVyio3BCv4RHmeBtaIhmp0L7n608tDeoJZFXE08JkDtR6rS8OiQw1jt6GuNAVGYk7/Rhgpujo="
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
skip_cleanup: true
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
cache:
apt: true
cargo: true
before_cache:
- chmod -R a+r $HOME/.cargo
notifications:
email:
on_success: never
webhooks:
urls:
- https://webhooks.gitter.im/e/7e08f15b115326957c31
on_success: change on_failure: always on_start: never