summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-13 18:23:03 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-13 18:23:03 +0100
commit5cce1effeab6a214850392f142aeb0fbbba3e63a (patch)
treec14d0b6458e0a5d10c43f7d88d038c91d65b29b4
parent62a9825c41fd0b859eeb2aa3a25b8f2a2eba58b5 (diff)
downloadads1x1x-async-5cce1effeab6a214850392f142aeb0fbbba3e63a.tar.gz
ads1x1x-async-5cce1effeab6a214850392f142aeb0fbbba3e63a.tar.xz
ads1x1x-async-5cce1effeab6a214850392f142aeb0fbbba3e63a.zip
Add coveralls support
-rw-r--r--.travis.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 05d94de..ed3fb06 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,19 @@
language: rust
+# sudo is required to enable kcov to use the personality syscall
+sudo: required
+
+before_script:
+ - eval git pull --rebase https://github.com/eldruin/ads1x1x-rs ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
+ - eval git log --pretty=oneline HEAD~5..HEAD
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
+ before_script:
+ - export PATH=$HOME/.cargo/bin:$PATH
+ - cargo install cargo-update || echo "cargo-update already installed"
+ - cargo install cargo-travis || echo "cargo-travis already installed"
+ - cargo install-update -a
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
@@ -28,6 +39,17 @@ matrix:
- env: TARGET=thumbv7m-none-eabi
rust: beta
+addons:
+ apt:
+ packages:
+ - libcurl4-openssl-dev
+ - libelf-dev
+ - libdw-dev
+ - binutils-dev
+ - cmake
+ sources:
+ - kalakris-cmake
+
before_install:
- set -e
- rustup self update
@@ -40,10 +62,18 @@ script:
after_script: set +e
+after_success:
+ - cargo coveralls --verbose
+
cache: cargo
+cache:
+ directories:
+ - /home/travis/.cargo
+
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
+ - rm -rf /home/travis/.cargo/registry
branches:
only: