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 3 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
37 changes: 24 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
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:
<<<<<<< HEAD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this?

Copy link
Contributor Author

@Hoverbear Hoverbear Jun 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bad merge! Sorry :(

- 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
# Validate benches still work.
- cargo bench --all -- --test
=======
# Validate features and benches too.
- cargo test --all -- --nocapture
- cargo bench --all -- --test
- cargo test --all --all-features -- --nocapture
- cargo bench --all --all-features -- --test
>>>>>>> master
26 changes: 0 additions & 26 deletions appveyor.yml

This file was deleted.