json tests are not run in default configuration, faster travis build, fixed coverage for ethcore-rpc and ethash
This commit is contained in:
parent
f0bd77d00c
commit
09ebc924a6
28
.travis.yml
28
.travis.yml
@ -8,7 +8,8 @@ matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- rust: nightly
|
||||
env: FEATURES="--features rpc"
|
||||
env: FEATURES="--features ethcore/json-tests"
|
||||
env: KCOV_FEATURES=""
|
||||
cache:
|
||||
apt: true
|
||||
directories:
|
||||
@ -27,30 +28,33 @@ before_script: |
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -y --force-yes librocksdb
|
||||
script:
|
||||
- cargo build --release --verbose
|
||||
- cargo test --release -p ethash --verbose
|
||||
- cargo test --release -p ethcore-util --verbose
|
||||
- cargo test --release -p ethcore --verbose
|
||||
- cargo build --release --verbose ${FEATURES}
|
||||
- cargo test --release -p ethash --verbose ${FEATURES}
|
||||
- cargo test --release -p ethcore-util --verbose ${FEATURES}
|
||||
- cargo test --release -p ethcore --verbose ${FEATURES}
|
||||
- cargo test --release -p ethsync --verbose ${FEATURES}
|
||||
- cargo test --release -p ethcore-rpc --verbose ${FEATURES}
|
||||
- cargo test --release --verbose ${FEATURES}
|
||||
- cargo test --release -p parity --verbose ${FEATURES}
|
||||
- cargo bench --no-run ${FEATURES}
|
||||
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 ../.. &&
|
||||
cargo test --no-run -p ethcore-util &&
|
||||
cargo test --no-run -p ethcore-util ${KCOV_FEATURES} &&
|
||||
cargo test --no-run -p ethash ${KCOV_FEATURES} &&
|
||||
cargo test --no-run -p ethcore ${KCOV_FEATURES} &&
|
||||
cargo test --no-run -p ethsync ${KCOV_FEATURES} &&
|
||||
cargo test --no-run -p ethcore-rpc ${KCOV_FEATURES} &&
|
||||
cargo test --no-run -p parity ${KCOV_FEATURES} &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/deps/ethcore_util-* &&
|
||||
cargo test --no-run -p ethash &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/deps/ethash-* &&
|
||||
cargo test --no-run -p ethcore --no-default-features &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/deps/ethcore-* &&
|
||||
cargo test --no-run -p ethcore-rpc ${FEATURES} &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/deps/ethsync-* &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/deps/ethcore_rpc-* &&
|
||||
cargo test --no-run ${FEATURES} &&
|
||||
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern /.cargo,/root/.multirust target/kcov target/debug/parity-* &&
|
||||
[ $TRAVIS_BRANCH = master ] &&
|
||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||
[ $TRAVIS_RUST_VERSION = nightly ] &&
|
||||
cargo doc ${FEATURES} --no-deps --verbose -p ethcore -p ethcore-util -p ethcore-rpc -p parity -p ethash -p ethsync &&
|
||||
cargo doc ${KCOV_FEATURES} --no-deps --verbose -p ethash -p ethcore-util -p ethcore -p ethsync -p ethcore-rpc -p parity &&
|
||||
echo '<meta http-equiv=refresh content=0;url=ethcore/index.html>' > target/doc/index.html &&
|
||||
pip install --user ghp-import &&
|
||||
/home/travis/.local/bin/ghp-import -n target/doc
|
||||
|
@ -19,6 +19,7 @@ ethsync = { path = "sync" }
|
||||
ethcore-rpc = { path = "rpc", optional = true }
|
||||
|
||||
[features]
|
||||
default = ["rpc"]
|
||||
rpc = ["ethcore-rpc"]
|
||||
|
||||
[[bin]]
|
||||
|
@ -25,7 +25,6 @@ crossbeam = "0.1.5"
|
||||
lazy_static = "0.1"
|
||||
|
||||
[features]
|
||||
default = ["json-tests"]
|
||||
jit = ["evmjit"]
|
||||
evm-debug = []
|
||||
json-tests = []
|
||||
|
Loading…
Reference in New Issue
Block a user