2016-01-28 17:39:06 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2016-01-20 15:55:29 +01:00
|
|
|
language: rust
|
2016-02-01 14:49:46 +01:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2016-02-15 23:39:58 +01:00
|
|
|
- /^beta-.*$/
|
|
|
|
- /^stable-.*$/
|
2016-02-08 15:54:13 +01:00
|
|
|
- /^beta$/
|
|
|
|
- /^stable$/
|
2016-01-28 17:39:06 +01:00
|
|
|
matrix:
|
2016-02-19 01:13:00 +01:00
|
|
|
fast_finish: false
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
2016-01-28 17:39:06 +01:00
|
|
|
include:
|
2016-03-05 11:35:44 +01:00
|
|
|
- rust: stable
|
2016-03-08 16:40:35 +01:00
|
|
|
env: FEATURES="--features travis-beta" KCOV_FEATURES="" TARGETS="-p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity -p ethminer" ARCHIVE_SUFFIX="-${TRAVIS_OS_NAME}-${TRAVIS_TAG}"
|
2016-02-19 00:55:57 +01:00
|
|
|
- rust: beta
|
2016-03-08 16:40:35 +01:00
|
|
|
env: FEATURES="--features travis-beta" KCOV_FEATURES="" TARGETS="-p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity -p ethminer" ARCHIVE_SUFFIX="-${TRAVIS_OS_NAME}-${TRAVIS_TAG}"
|
2016-01-28 17:39:06 +01:00
|
|
|
- rust: nightly
|
2016-03-08 16:40:35 +01:00
|
|
|
env: FEATURES="--features travis-nightly" KCOV_FEATURES="" TARGETS="-p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity -p ethminer" ARCHIVE_SUFFIX="-${TRAVIS_OS_NAME}-${TRAVIS_TAG}"
|
2016-01-20 16:43:29 +01:00
|
|
|
cache:
|
2016-01-28 17:39:06 +01:00
|
|
|
apt: true
|
2016-01-20 16:43:29 +01:00
|
|
|
directories:
|
2016-01-31 18:46:37 +01:00
|
|
|
- target/debug/deps
|
|
|
|
- target/debug/build
|
2016-01-28 21:00:43 +01:00
|
|
|
- target/release/deps
|
|
|
|
- target/release/build
|
2016-02-18 20:06:59 +01:00
|
|
|
- $HOME/.cargo
|
2016-01-28 17:39:06 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
|
|
|
before_script: |
|
2016-01-28 20:47:15 +01:00
|
|
|
sudo add-apt-repository "deb http://ppa.launchpad.net/giskou/librocksdb/ubuntu trusty main" &&
|
|
|
|
sudo apt-get update &&
|
2016-01-28 20:51:17 +01:00
|
|
|
sudo apt-get install -y --force-yes librocksdb
|
2016-01-28 17:39:06 +01:00
|
|
|
script:
|
2016-02-01 16:03:43 +01:00
|
|
|
- cargo build --release --verbose ${FEATURES}
|
2016-02-02 02:04:03 +01:00
|
|
|
- cargo test --release --verbose ${FEATURES} ${TARGETS}
|
2016-02-19 11:03:02 +01:00
|
|
|
#- cargo bench --no-run ${FEATURES} ${TARGETS}
|
2016-02-02 15:01:18 +01:00
|
|
|
- tar cvzf parity${ARCHIVE_SUFFIX}.tar.gz -C target/release parity
|
2016-01-28 17:39:06 +01:00
|
|
|
after_success: |
|
|
|
|
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 && make install DESTDIR=../tmp && cd ../.. &&
|
2016-02-02 02:04:03 +01:00
|
|
|
cargo test --no-run ${KCOV_FEATURES} ${TARGETS} &&
|
2016-02-19 20:14:28 +01:00
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethcore_util-* &&
|
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethash-* &&
|
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethcore-* &&
|
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethsync-* &&
|
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethcore_rpc-* &&
|
2016-03-08 15:53:12 +01:00
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /usr/,/.cargo,/root/.multirust,src/tests,util/json-tests,util/src/network/tests,sync/src/tests,ethcore/src/tests,ethcore/src/evm/tests target/kcov target/debug/deps/ethminer-* &&
|
2016-02-19 20:14:28 +01:00
|
|
|
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${TRAVIS_JOB_ID} --exclude-pattern /usr/,/.cargo,/root/.multirust target/kcov target/debug/parity-* &&
|
2016-01-28 17:39:06 +01:00
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
2016-03-05 11:35:44 +01:00
|
|
|
[ $TRAVIS_RUST_VERSION = stable ] &&
|
2016-02-02 02:32:58 +01:00
|
|
|
cargo doc --no-deps --verbose ${KCOV_FEATURES} ${TARGETS} &&
|
2016-01-28 17:48:10 +01:00
|
|
|
echo '<meta http-equiv=refresh content=0;url=ethcore/index.html>' > target/doc/index.html &&
|
|
|
|
pip install --user ghp-import &&
|
2016-02-02 23:58:36 +01:00
|
|
|
/home/travis/.local/bin/ghp-import -n target/doc &&
|
|
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
2016-01-28 17:39:06 +01:00
|
|
|
env:
|
|
|
|
global:
|
2016-02-24 11:19:27 +01:00
|
|
|
# GH_TOKEN
|
|
|
|
- secure: bumJASbZSU8bxJ0EyPUJmu16AiV9EXOpyOj86Jlq/Ty9CfwGqsSXt96uDyE+OUJf34RUFQMsw0nk37/zC4lcn6kqk2wpuH3N/o85Zo/cVZY/NusBWLQqtT5VbYWsV+u2Ua4Tmmsw8yVYQhYwU2ZOejNpflL+Cs9XGgORp1L+/gMRMC2y5Se6ZhwnKPQlRJ8LGsG1dzjQULxzADIt3/zuspNBS8a2urJwlHfGMkvHDoUWCviP/GXoSqw3TZR7FmKyxE19I8n9+iSvm9+oZZquvcgfUxMHn8Gq/b44UbPvjtFOg2yam4xdWXF/RyWCHdc/R9EHorSABeCbefIsm+zcUF3/YQxwpSxM4IZEeH2rTiC7dcrsKw3XsO16xFQz5YI5Bay+CT/wTdMmJd7DdYz7Dyf+pOvcM9WOf/zorxYWSBOMYy0uzbusU2iyIghQ82s7E/Ahg+WARtPgkuTLSB5aL1oCTBKHqQscMr7lo5Ti6RpWLxEdTQMBznc+bMr+6dEtkEcG9zqc6cE9XX+ox3wTU6+HVMfQ1ltCntJ4UKcw3A6INEbw9wgocQa812CIASQ2fE+SCAbz6JxBjIAlFUnD1lUB7S8PdMPwn9plfQgKQ2A5YZqg6FnBdf0rQXIJYxQWKHXj/rBHSUCT0tHACDlzTA+EwWggvkP5AGIxRxm8jhw=
|
2016-02-02 14:33:02 +01:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2016-02-03 10:00:58 +01:00
|
|
|
secure: "t+oGT/4lsy7IScw5s86Dpntl5Nyck4qG6nhHwMScc6FYzwLldgwgJaafL8Ej+HG+b7nFLriN+Snoa4YQ5o74X5ZlSWubVREOYQlL/fq7vcPB0DwAZ0Jufq1QW2R1M+3SwwF1eAwTv2W3G7A2K7dxjCVvENcy/gdxnZ36NeUPsqaCC9UcI2Yc7+4jyQwvx6ZfBvQeu+HbKENA0eUNs2ZQOID/1IPy0LJBvSyxAQYsysXdjTzGdNu4+Iba20E8uWYe4fAbgz+gwGarXg1L6D6gKyMlWkViqWjvXWBuDJJqMQZ3rw41AwZOoh3mKd2Lc0l6l4oZcEqPuob0yKTNjz1tuJy9xKTC2F2bDzsvUgk1IRfMK5ukXXXS09ZCZWuA9/GtnsqJ1xGTiwX+DhQzpVBHaBiseSNlYE1YN/3jNyGY+iSts1qut+1BwE7swmcTLsAPoAy8Ue+f7ErNoCg1lm71vq7VO2DLn7x2NqHyHUEuJ+7olDHSdE84G7d9otDRu/+TfMOw7GXwTaha6yJRInuNsnj4CFMLNVvYACzCC2idB7f7nUZoSFi9jf18S9fCMPVmazMrFj4g95HWrVHkjpV5zRTeUdTWw6DJl6pC9HFqORHdCvLv4Rc4dm5r3CmOcAQ0ZuiccV2oKzw4/Wic96daae8M5f5KSQ/WTr+h0wXZKp0="
|
2016-02-02 14:33:02 +01:00
|
|
|
skip_cleanup: true
|
2016-02-02 15:01:18 +01:00
|
|
|
file: parity${ARCHIVE_SUFFIX}.tar.gz
|
2016-02-02 14:33:02 +01:00
|
|
|
on:
|
|
|
|
tags: true
|
2016-02-05 13:51:35 +01:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
2016-02-05 14:03:10 +01:00
|
|
|
- https://hooks.slack.com/services/${SLACK_WEBHOOK}
|
2016-02-05 13:51:35 +01:00
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
2016-02-05 14:03:10 +01:00
|
|
|
on_start: never
|