Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Stop depending on travis-cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
gifnksm committed May 2, 2017
1 parent 333ba0d commit 1c22f1a
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,34 @@ addons:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev

rust:
- nightly
- beta
- stable

before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
- cargo install cargo-kcov
- cargo kcov --print-install-kcov-sh | $SHELL

script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo bench &&
travis-cargo --only stable doc
cargo build &&
cargo kcov --coveralls &&
cargo bench &&
cargo doc
after_success: |
[ "${TRAVIS_BRANCH}" = master ] &&
[ "${TRAVIS_PULL_REQUEST}" == false ] &&
[ "${TRAVIS_RUST_VERSION}" == stable ] &&
cargo install ghp &&
ghp target/doc &&
git config user.name "Travis Documentation" &&
git config user.email "name@example.com" &&
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 > /dev/null
after_success:
# upload the documentation from the build with stable (automatically only actually
# runs on the master branch, not individual PRs)
- travis-cargo --only stable doc-upload
# measure code coverage and upload to coveralls.io
- travis-cargo coveralls --no-sudo
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- secure: "N0VHBpQ8Co81/xVM+MQn2JZIFkJMNYf1nn+lwxUrfotesRQUAR6Wh3KHl/tgCdAFw+WvYk6kfxQ0ODFJd7iRdlZez2nujwxczXJj4pU+vqcFkJhlr1uBl2HrWeboGVv3M/60HWyERRz5nI5lGR5FP5qgPQTE/KRTnrPYADBgKNo="

0 comments on commit 1c22f1a

Please sign in to comment.