From 0c85c87f11bc0ff37440d65d9a03015b00eefc45 Mon Sep 17 00:00:00 2001 From: Dima Kudosh Date: Sun, 26 Feb 2017 17:55:47 +0300 Subject: [PATCH] Update .travis.yml --- .travis.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 97f3d18..17172ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,21 @@ rust: - stable - beta - nightly -after_success: | - sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev && - wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && - tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && - sudo make install && cd ../.. && - kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/difflib-* +before_script: + # load travis-cargo + - pip install 'travis-cargo<0.2' --user + - export PATH=$HOME/.local/bin/:$PATH +# the main build +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. ) + - travis-cargo coveralls --no-sudo --verify