Skip to content
.travis.yml 2.06 KiB
Newer Older
Marek Kotewicz's avatar
Marek Kotewicz committed
sudo: required
dist: trusty
Marek Kotewicz's avatar
Marek Kotewicz committed
language: rust
Marek Kotewicz's avatar
Marek Kotewicz committed
matrix:
  fast_finish: true
  include:
  - rust: nightly
Nikolay Volf's avatar
Nikolay Volf committed
cache:
Marek Kotewicz's avatar
Marek Kotewicz committed
  apt: true
Nikolay Volf's avatar
Nikolay Volf committed
  directories:
Marek Kotewicz's avatar
Marek Kotewicz committed
  - target/debug/deps
  - target/debug/build
Marek Kotewicz's avatar
Marek Kotewicz committed
  - rocksdb-3.13.1
Marek Kotewicz's avatar
Marek Kotewicz committed
addons:
  apt:
    packages:
    - libcurl4-openssl-dev
    - libelf-dev
    - libdw-dev
before_script: |
Marek Kotewicz's avatar
Marek Kotewicz committed
  [ -d "rocksdb-3.13.1" ] &&
Marek Kotewicz's avatar
Marek Kotewicz committed
  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: |
  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 ] &&
Marek Kotewicz's avatar
Marek Kotewicz committed
  [ $TRAVIS_RUST_VERSION = nightly ] &&
  cargo doc --no-deps &&
  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 
Marek Kotewicz's avatar
Marek Kotewicz committed
  #&&
Marek Kotewicz's avatar
Marek Kotewicz committed
  #git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
Marek Kotewicz's avatar
Marek Kotewicz committed
env:
  global:
Marek Kotewicz's avatar
Marek Kotewicz committed
    secure: 3sUjNi9mhdL5h1GTm8LONnDN/SYvUHT+WSkMl93h3nYiLCQXk8eZaPS98AS7oOaTsfW4UvnwckVFCFl49ttInsv4cd/TkAxmrJHe6kPyS9/4NWUdmP8BjicbBvL/ioSdXMECMEYzPDLV+I3KhtC2LcB6ceDEl/XwMOJlzbGf7RbtcXGVQgMLqSYY1YKjQA4vbT5nFgIS/sZu3Z9yFgN0GafnihKcizqoHhdJjs/zxmX+qJepnC6o3V6KcFnS7QHhM1JOr85twE6S422UlvNaEb5ovwLPqmOl5+fA+6shbx4AxFTY6E9Iors+OVY/JliFhrqOdCt0i2P1FUHN4kbGZQkf0rphN/ZOI2uKNFTOyXiPvppfo/ZemKmcqkwkqP9+lf5QqYmtE6hsAYagxn49xJZILl8tAYbdqxF5gxa+TEVrfsBFtz/Sv3q8QhKQNPAmjEcKyMatyEreLUIFEpFTGIco8jN4eXeSoLRdJ+Z75ihttfQWhNfUDgNL30iQLy0AgFSsh/cyb5M8y9lxrGDzDTogvaiKGwr/V45sPkcXWCkmOgMdINqBB6ZtdL3bGHdyjmYj+y3btjf3aP11k++BL0fXIaKn25aS/p/9iyGb1FyGCM03o4ZRQ3YhTOvfMRfRGf6nWbaMx9upv8o5ShSdysewhrnh3082r7u896ny1Ho=