Skip to content

Commit

Permalink
add travis yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harlanc committed Aug 21, 2021
1 parent c6a06cf commit d69694e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: rust

rust:
- stable
- beta
- nightly
# - 1.46.0 // does not work since cargo test is executed automatically

os:
- linux
- windows
- osx

jobs:
fast_finish: true
allow_failures:
- rust: nightly
- os: windows
include:
- if: rust = stable
script:
- rustup component add rustfmt
- cargo fmt --all -- --check

- if: rust = stable OR rust = beta OR rust = nightly
script:
- cargo test --release --all-features
- cargo test --release
- cargo test --release --no-default-features

- if: rust = nightly
script:
- cargo test --release --doc
- cargo doc --all-features --no-deps

- if: rust = "1.46.0"
script:
- cargo build --release
- cargo build --release --no-default-features
- cargo build --release --all-features

0 comments on commit d69694e

Please sign in to comment.