diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 000000000..ccc1f1c06 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: travis-pro +repo_token: 9bO9xcnxkkust83M5W1RCApsx440aWZHF diff --git a/.travis.yml b/.travis.yml index 1efef4f21..83cd9569a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,45 @@ +sudo: required +dist: trusty language: rust - -rust: - - nightly - -os: - - osx - -before_script: - - brew update - - brew install rocksdb - +matrix: + fast_finish: true + include: + - rust: nightly cache: + apt: true directories: - - $TRAVIS_BUILD_DIR/target - - $HOME/.cargo \ No newline at end of file + - target/debug/deps + - target/debug/build +addons: + apt: + packages: + - libcurl4-openssl-dev + - libelf-dev + - libdw-dev +before_script: | + wget https://github.com/facebook/rocksdb/archive/rocksdb-3.13.1.tar.gz && + tar -zxvf rocksdb-3.13.1.tar.gz && + cd rocksdb-rocksdb-3.13.1 && + make shared_lib && make install && cd +script: +- cargo build --verbose $FEATURES +- cargo test --verbose $FEATURES +- cargo bench --no-run +after_success: | + [ $TRAVIS_RUST_VERSION = stable ] && + 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 ../.. && + ls target/debug && + ./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/ethcore* && + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + [ $TRAVIS_RUST_VERSION = stable ] + #&& + #cargo doc --no-deps && + #echo '' > target/doc/index.html && + #pip install --user ghp-import && + #/home/travis/.local/bin/ghp-import -n target/doc && + #git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages +env: + global: + secure: HLwg9SKpccmkMtAWpuhjbKki7wWwdDH+qN0jUxIEJmhpZTQfJLEGgNc9g+uPH/dd5G/S/T08fPCgkoBx3OJ4C1mL36FNQi/E82/+sMtVGQ55iZg2Ysrn76VzdGgujNR2AiVoFNcphR8J/O/2UQbg1gaevRLhn8VUhA18e38PlUCRMPpjFi0B4WGCj2ey749aBK0sYEhuaEEnF3Sc1z013Ev2fG17+OA5cYc8RCUX7nNqpr4K3omzWKLUk96C58OUj76cZgRa/qA0TKLRrO4Smlzz0OFNcKN98cYmAsqRBE5IJIZO9YczSaizVFptI37KT9i1JYGc/7zWCqFeSFGgGgNmGEBjkzlN3xt3SuUSu7YuRowl37s44sgpZID+d9eeDWDeePEwDU6GMNNHRSmNjszUyYjcWuNu2te5UALHpjBVozzf4m36yvyVfMbrziTjcCqsAMnrLeaNznZ6pJB8b21PkLloFNWJkOENwZGL5ti6TX/ZlBw0Q1va/JcGYKCEQqzPvD+Zl6BdLZmZpJlIXb+cFcgAIzkbs73knRKMBBgVffHBIYzkNLOwz732UK6MkJBIAuJwZOZ5f6ME9VyhsTcZ/MlMHM5KTbc5L4bO/F+qgK3l5rUR/Kch6WOgIIy9OVbm737qG/41iQnkIYOspbm9QWs+YrUOclDwPrFCCh4=