Skip to content

Commit

Permalink
Modernize travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed May 31, 2019
1 parent 472b69a commit 6d97f7a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 37 deletions.
39 changes: 24 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
language: rust
sudo: false
rust:
- nightly
- beta
- stable
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH

cache: cargo

matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
os: linux
rust: nightly
- env: TARGET=x86_64-unknown-linux-gnu
os: linux
rust: beta
- env: TARGET=x86_64-unknown-linux-gnu
os: linux
rust: stable

install:
- rustup self update
- rustup target add $TARGET; true

script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench &&
travis-cargo doc
- cargo build --all --target $TARGET --verbose
- cargo test --all --target $TARGET --verbose

after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy-docs.sh
env:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"
&& cargo publish --token ${CRATESIO_TOKEN}
22 changes: 0 additions & 22 deletions deploy-docs.sh

This file was deleted.

0 comments on commit 6d97f7a

Please sign in to comment.