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
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
env: FEATURES="--features rpc"
|
env: FEATURES="--features ethcore/json-tests"
|
||||||
|
env: KCOV_FEATURES=""
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
@ -27,30 +28,33 @@ before_script: |
|
|||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install -y --force-yes librocksdb
|
sudo apt-get install -y --force-yes librocksdb
|
||||||
script:
|
script:
|
||||||
- cargo build --release --verbose
|
- cargo build --release --verbose ${FEATURES}
|
||||||
- cargo test --release -p ethash --verbose
|
- cargo test --release -p ethash --verbose ${FEATURES}
|
||||||
- cargo test --release -p ethcore-util --verbose
|
- cargo test --release -p ethcore-util --verbose ${FEATURES}
|
||||||
- cargo test --release -p ethcore --verbose
|
- 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 -p ethcore-rpc --verbose ${FEATURES}
|
||||||
- cargo test --release --verbose ${FEATURES}
|
- cargo test --release -p parity --verbose ${FEATURES}
|
||||||
- cargo bench --no-run ${FEATURES}
|
- cargo bench --no-run ${FEATURES}
|
||||||
after_success: |
|
after_success: |
|
||||||
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
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 ../.. &&
|
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-* &&
|
./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-* &&
|
./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-* &&
|
./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-* &&
|
./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-* &&
|
./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_BRANCH = master ] &&
|
||||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
[ $TRAVIS_RUST_VERSION = nightly ] &&
|
[ $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 &&
|
echo '<meta http-equiv=refresh content=0;url=ethcore/index.html>' > target/doc/index.html &&
|
||||||
pip install --user ghp-import &&
|
pip install --user ghp-import &&
|
||||||
/home/travis/.local/bin/ghp-import -n target/doc
|
/home/travis/.local/bin/ghp-import -n target/doc
|
||||||
|
@ -19,6 +19,7 @@ ethsync = { path = "sync" }
|
|||||||
ethcore-rpc = { path = "rpc", optional = true }
|
ethcore-rpc = { path = "rpc", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
default = ["rpc"]
|
||||||
rpc = ["ethcore-rpc"]
|
rpc = ["ethcore-rpc"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
@ -25,7 +25,6 @@ crossbeam = "0.1.5"
|
|||||||
lazy_static = "0.1"
|
lazy_static = "0.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["json-tests"]
|
|
||||||
jit = ["evmjit"]
|
jit = ["evmjit"]
|
||||||
evm-debug = []
|
evm-debug = []
|
||||||
json-tests = []
|
json-tests = []
|
||||||
|
Loading…
Reference in New Issue
Block a user