Merge branch 'master' of https://github.com/ethcore/parity into rpc
This commit is contained in:
commit
b835c5a338
16
.travis.yml
Normal file
16
.travis.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
language: rust
|
||||||
|
|
||||||
|
rust:
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
os:
|
||||||
|
- osx
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- brew update
|
||||||
|
- brew install rocksdb
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $TRAVIS_BUILD_DIR/target
|
||||||
|
- $HOME/.cargo
|
21
cov.sh
Executable file
21
cov.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Installing KCOV under ubuntu
|
||||||
|
# https://users.rust-lang.org/t/tutorial-how-to-collect-test-coverages-for-rust-project/650#
|
||||||
|
### Install deps
|
||||||
|
# $ sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
|
||||||
|
#
|
||||||
|
### Compile kcov
|
||||||
|
# $ wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && tar xf master.tar.gz
|
||||||
|
# $ cd kcov-master && mkdir build && cd build
|
||||||
|
# $ cmake .. && make && sudo make install
|
||||||
|
|
||||||
|
### Running coverage
|
||||||
|
if ! type kcov > /dev/null; then
|
||||||
|
echo "Install kcov first (details inside this file). Aborting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cargo test --no-run || exit $?
|
||||||
|
mkdir -p target/coverage
|
||||||
|
kcov --exclude-pattern ~/.multirust --include-pattern src --verify target/coverage target/debug/ethcore*
|
||||||
|
xdg-open target/coverage/index.html
|
1
util/cov.sh
Symbolic link
1
util/cov.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../cov.sh
|
Loading…
Reference in New Issue
Block a user