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 e18f215
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,37 @@ 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 run --example test_authorization_header &&
cargo run --example test_get &&
cargo run --example test_post &&
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=""
Expand Down

0 comments on commit e18f215

Please sign in to comment.