summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-20 18:37:29 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-20 18:37:29 +0100
commit23f62d84d1232b7ef5ec02483a8090aa5c336fa6 (patch)
treeeac297767f552302887ef75ccbb62fb01378637e /.travis.yml
parent065e5eab4a0278b77bd0b14167a662776f491921 (diff)
downloadads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.tar.gz
ads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.tar.xz
ads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.zip
Use centralized CI
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml47
1 files changed, 20 insertions, 27 deletions
diff --git a/.travis.yml b/.travis.yml
index 11656f8..a93a7e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,25 +2,30 @@ 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 master
- - eval git log --pretty=oneline HEAD~5..HEAD
- - export PATH=$HOME/.cargo/bin:$PATH
+before_install:
+ - git clone https://github.com/eldruin/rust-driver-ci-scripts ci
+ - bash ci/before_install.sh
matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
-
- - env: TARGET=x86_64-unknown-linux-gnu COVERAGE=1 LLVM_CONFIG=llvm-config-7
- rust: nightly
+ before_script:
+ - bash ci/coverage_before_script.sh
+ after_success:
+ - bash ci/coverage_after_success.sh
addons:
apt:
- sources:
- - ubuntu-toolchain-r-test
- - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- - llvm-7-dev
+ - libcurl4-openssl-dev
+ - libelf-dev
+ - libdw-dev
+ - binutils-dev
+ - cmake
+ sources:
+ - kalakris-cmake
+
+ - env: TARGET=x86_64-unknown-linux-gnu
+ rust: nightly
- env: TARGET=x86_64-unknown-linux-musl
rust: nightly
@@ -43,15 +48,11 @@ matrix:
- env: TARGET=thumbv7m-none-eabi
rust: beta
-before_install:
- - set -e
- - rustup self update
-
install:
- - bash ci/install.sh
+ bash ci/install.sh
script:
- - bash ci/script.sh
+ bash ci/script.sh
after_script: set +e
@@ -61,15 +62,7 @@ cache:
- /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:
- - master
- - staging
- - trying
+ bash ci/before_cache.sh
notifications:
email: