Skip to content

Commit

Permalink
add .travis.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
tafia committed Dec 29, 2017
1 parent 27ca601 commit 9e78b37
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: rust
cache: cargo
sudo: false

rust:
- nightly
- beta
- stable

before_script:
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- pip install -v 'travis-cargo<0.2' --user
- travis-cargo --only nightly install rustfmt-nightly -- --force

script:
- travis-cargo --only nighlty fmt -- --write-mode=diff
- cargo build
- cargo test
- travis-cargo --only stable doc
after_success:
- travis-cargo --only stable doc-upload

env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""

0 comments on commit 9e78b37

Please sign in to comment.