language: rust
cache:
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/git
- rm -rf /home/travis/.cargo/registry
- rm -rf /home/travis/.cargo/bin/cargo-tarpaulin
- rm -rf target/debug/incremental/{async_io_stream,build_script_build}-*
- rm -rf target/debug/.fingerprint/async_io_stream-*
- rm -rf target/debug/build/async_io_stream-*
- rm -rf target/debug/deps/libasync_io_stream-*
- rm -rf target/debug/deps/async_io_stream-*
- rm -rf target/debug/{async_io_stream,libasync_io_stream}.d
- cargo clean -p async_io_stream
branches:
only:
- master
- dev
jobs:
include:
- name: linux stable rust
os : linux
rust: stable
script:
- bash ci/test.bash
- bash ci/deny.bash
- name: linux nightly rust
os : linux
dist: bionic rust: nightly
addons:
apt:
packages:
- libssl-dev
script:
- bash ci/test.bash
- bash ci/doc.bash
- bash ci/coverage.bash
- name: osx stable rust
os : osx
rust: stable
script:
- bash ci/test.bash
- name: windows stable rust
os : windows
rust: stable
script:
- bash ci/test.bash