2016-10-31 19:09:30 +00:00
|
|
|
sudo: true
|
2015-03-01 20:46:46 +00:00
|
|
|
language: rust
|
2016-11-12 23:17:57 +00:00
|
|
|
cache: cargo
|
2015-04-29 02:43:20 +00:00
|
|
|
rust:
|
2015-05-05 15:45:38 +00:00
|
|
|
- nightly
|
2019-06-19 16:37:35 +00:00
|
|
|
- nightly-2019-06-18
|
2018-11-10 06:26:48 +00:00
|
|
|
- beta
|
|
|
|
- stable
|
2019-06-19 16:37:35 +00:00
|
|
|
- 1.33.0
|
2019-04-04 17:27:08 +00:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2019-06-19 16:37:35 +00:00
|
|
|
nightly-2019-06-18:
|
2019-04-04 17:27:08 +00:00
|
|
|
- script: cargo clippy
|
2015-04-29 02:43:20 +00:00
|
|
|
before_script:
|
2015-07-29 19:18:05 +00:00
|
|
|
- |
|
2016-10-31 19:09:30 +00:00
|
|
|
pip install git+git://github.com/kbknapp/travis-cargo.git --user &&
|
2015-07-29 19:18:05 +00:00
|
|
|
export PATH=$HOME/.local/bin:$PATH
|
2017-09-23 10:31:43 +00:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "1.13.0" ]]; then
|
|
|
|
echo "Old Rust detected, removing version-sync dependency"
|
|
|
|
sed -i "/^version-sync =/d" Cargo.toml
|
|
|
|
rm "tests/version-numbers.rs"
|
|
|
|
fi
|
2015-04-28 01:39:17 +00:00
|
|
|
script:
|
2015-07-29 19:18:05 +00:00
|
|
|
- |
|
2016-10-15 17:08:51 +00:00
|
|
|
travis-cargo test -- --verbose --no-default-features &&
|
2019-06-19 22:49:09 +00:00
|
|
|
travis-cargo --skip nightly test -- --verbose --features "yaml unstable" &&
|
|
|
|
travis-cargo --only nightly test -- --verbose --features "yaml unstable nightly" &&
|
2016-08-27 15:08:51 +00:00
|
|
|
travis-cargo --only nightly bench
|
2015-10-27 14:06:15 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
2016-10-31 19:09:30 +00:00
|
|
|
- cmake
|
|
|
|
- gcc
|
|
|
|
- binutils-dev
|
2015-04-29 02:43:20 +00:00
|
|
|
after_success:
|
2015-09-02 18:51:37 +00:00
|
|
|
- |
|
2016-10-31 19:09:30 +00:00
|
|
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
|
|
|
tar xzf master.tar.gz &&
|
|
|
|
cd kcov-master &&
|
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
cmake .. &&
|
|
|
|
make &&
|
|
|
|
sudo make install &&
|
|
|
|
cd ../.. &&
|
|
|
|
rm -rf kcov-master &&
|
|
|
|
cargo clean &&
|
2019-06-19 22:49:09 +00:00
|
|
|
cargo test --no-run --features "yaml unstable" &&
|
2016-11-02 01:47:14 +00:00
|
|
|
for file in target/debug/*-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo --verify "target/cov/$(basename $file)" "$file"; done &&
|
|
|
|
kcov --coveralls-id=$TRAVIS_JOB_ID --merge target/cov target/cov/* &&
|
2016-10-31 19:09:30 +00:00
|
|
|
echo "Uploaded code coverage"
|
2015-04-29 02:43:20 +00:00
|
|
|
env:
|
|
|
|
global:
|
2016-01-30 02:28:12 +00:00
|
|
|
- secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA=
|