Update .travis.yml

This commit is contained in:
Dima Kudosh
2017-02-26 17:55:47 +03:00
committed by GitHub
parent 7fc731ab99
commit 0c85c87f11
+18 -6
View File
@@ -3,9 +3,21 @@ rust:
- stable - stable
- beta - beta
- nightly - nightly
after_success: | before_script:
sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev && # load travis-cargo
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && - pip install 'travis-cargo<0.2' --user
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && - export PATH=$HOME/.local/bin/:$PATH
sudo make install && cd ../.. && # the main build
kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/difflib-* script:
- travis-cargo build
- travis-cargo test
- travis-cargo bench
- travis-cargo --only stable doc
after_success:
# upload the documentation from the build with stable (automatically only
# actually runs from the master branch, not individual PRs)
- travis-cargo --only stable doc-upload
# measure code coverage and upload to coveralls.io (the verify argument
# mitigates kcov crashes due to malformed debuginfo, at the cost of some
# speed. <https://github.com/huonw/travis-cargo/issues/12>)
- travis-cargo coveralls --no-sudo --verify