Skip to content

Refine CI, use travis windows #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
language: rust
sudo: false

language: rust
matrix:
include:
- os: linux
rust: stable
- os: linux
rust: nightly
- os: windows
rust: stable
- os: osx
rust: stable
env:
global:
- RUST_BACKTRACE=1
- RUSTFLAGS="--deny=warnings"
- RUSTFLAGS="-D warnings"
cache: cargo
rust:

matrix:
include:
- rust: stable
install:
- rustup component add rustfmt-preview
- rustup component add clippy-preview
before_script:
- cargo fmt --all -- --check
- cargo clippy --all -- -D clippy::all
- rust: nightly
install:
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then rustup component add rustfmt; fi
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then rustup component add clippy; fi

script:
# Validate features and benches too.
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo fmt -- --check; fi
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_OS_NAME == "linux" ]]; then cargo clippy -- -D clippy::all; fi
- cargo test --all -- --nocapture
- cargo bench --all -- --test
- cargo test --all --all-features -- --nocapture
# Validate features and benches too.
- cargo bench --all -- --test
- cargo bench --all --all-features -- --test
26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.