commit
26a8adb6e4
12
.travis.yml
12
.travis.yml
@ -8,6 +8,8 @@ matrix:
|
|||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
|
- target/debug/deps
|
||||||
|
- target/debug/build
|
||||||
- target/release/deps
|
- target/release/deps
|
||||||
- target/release/build
|
- target/release/build
|
||||||
addons:
|
addons:
|
||||||
@ -30,8 +32,14 @@ script:
|
|||||||
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 ../.. &&
|
||||||
ls target/release &&
|
cargo test --no-run -p ethcore-util &&
|
||||||
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern=/.cargo --include-pattern=ethcore/src target/kcov target/release/deps/ethcore-* &&
|
./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 &&
|
||||||
|
./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 ] &&
|
||||||
|
@ -25,6 +25,8 @@ 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 = []
|
||||||
test-heavy = []
|
test-heavy = []
|
||||||
|
@ -12,6 +12,7 @@ macro_rules! declare_test {
|
|||||||
#[ignore]
|
#[ignore]
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
|
#[cfg(feature="json-tests")]
|
||||||
fn $id() {
|
fn $id() {
|
||||||
test!($name);
|
test!($name);
|
||||||
}
|
}
|
||||||
@ -20,6 +21,7 @@ macro_rules! declare_test {
|
|||||||
#[cfg(feature = "test-heavy")]
|
#[cfg(feature = "test-heavy")]
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
|
#[cfg(feature="json-tests")]
|
||||||
fn $id() {
|
fn $id() {
|
||||||
test!($name);
|
test!($name);
|
||||||
}
|
}
|
||||||
@ -27,6 +29,7 @@ macro_rules! declare_test {
|
|||||||
($id: ident, $name: expr) => {
|
($id: ident, $name: expr) => {
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
|
#[cfg(feature="json-tests")]
|
||||||
fn $id() {
|
fn $id() {
|
||||||
test!($name);
|
test!($name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user