Skip to content

Commit

Permalink
switch to cargo-travis
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-Antoine Perennou <[email protected]>
  • Loading branch information
Keruspe committed Mar 16, 2017
1 parent 3000d54 commit 21e6b6b
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:

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

script:
- travis-cargo --only 1.2 test -- --features regexp
Expand All @@ -32,12 +33,7 @@ script:

after_success:
- travis-cargo bench
- travis-cargo coveralls --no-sudo
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/nom-*
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/arithmetic*
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/ini*
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/mp4*
- ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/json*
- cargo coveralls --verbose
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo bench;
fi
Expand All @@ -50,7 +46,6 @@ after_success:
cargo benchcmp benches-control benches-variable;
fi


notifications:
webhooks:
urls:
Expand All @@ -65,4 +60,16 @@ env:
# override the default `--features unstable` used for the nightly branch (optional)
- TRAVIS_CARGO_NIGHTLY_FEATURE=nightly

dist: trusty
sudo: false

addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake

0 comments on commit 21e6b6b

Please sign in to comment.