2016-07-11 19:53:26 +02:00
|
|
|
sudo: required
|
2016-01-28 17:39:06 +01:00
|
|
|
dist: trusty
|
2016-01-20 15:55:29 +01:00
|
|
|
language: rust
|
2016-07-14 12:52:24 +02:00
|
|
|
|
2016-02-01 14:49:46 +01:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2016-02-15 23:39:58 +01:00
|
|
|
- /^beta-.*$/
|
|
|
|
- /^stable-.*$/
|
2016-02-08 15:54:13 +01:00
|
|
|
- /^beta$/
|
|
|
|
- /^stable$/
|
2016-07-11 18:17:54 +02:00
|
|
|
|
2016-03-15 10:57:09 +01:00
|
|
|
git:
|
|
|
|
depth: 3
|
2016-07-11 18:17:54 +02:00
|
|
|
|
2016-01-28 17:39:06 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-03-05 11:35:44 +01:00
|
|
|
- rust: stable
|
2016-03-15 10:57:09 +01:00
|
|
|
env: FEATURES="--features travis-beta" RUN_TESTS="true"
|
|
|
|
- rust: beta
|
|
|
|
env: FEATURES="--features travis-beta" RUN_COVERAGE="true"
|
2016-07-11 18:17:54 +02:00
|
|
|
|
2016-03-15 10:57:09 +01:00
|
|
|
env:
|
|
|
|
global:
|
2016-07-11 18:47:58 +02:00
|
|
|
- CXX="g++-4.8"
|
|
|
|
- CC="gcc-4.8"
|
2016-07-11 18:17:54 +02:00
|
|
|
- RUST_BACKTRACE="1"
|
2016-03-15 10:57:09 +01:00
|
|
|
- RUN_TESTS="false"
|
|
|
|
- RUN_COVERAGE="false"
|
2016-07-11 18:17:54 +02:00
|
|
|
# GH_TOKEN for documentation
|
|
|
|
- secure: bumJASbZSU8bxJ0EyPUJmu16AiV9EXOpyOj86Jlq/Ty9CfwGqsSXt96uDyE+OUJf34RUFQMsw0nk37/zC4lcn6kqk2wpuH3N/o85Zo/cVZY/NusBWLQqtT5VbYWsV+u2Ua4Tmmsw8yVYQhYwU2ZOejNpflL+Cs9XGgORp1L+/gMRMC2y5Se6ZhwnKPQlRJ8LGsG1dzjQULxzADIt3/zuspNBS8a2urJwlHfGMkvHDoUWCviP/GXoSqw3TZR7FmKyxE19I8n9+iSvm9+oZZquvcgfUxMHn8Gq/b44UbPvjtFOg2yam4xdWXF/RyWCHdc/R9EHorSABeCbefIsm+zcUF3/YQxwpSxM4IZEeH2rTiC7dcrsKw3XsO16xFQz5YI5Bay+CT/wTdMmJd7DdYz7Dyf+pOvcM9WOf/zorxYWSBOMYy0uzbusU2iyIghQ82s7E/Ahg+WARtPgkuTLSB5aL1oCTBKHqQscMr7lo5Ti6RpWLxEdTQMBznc+bMr+6dEtkEcG9zqc6cE9XX+ox3wTU6+HVMfQ1ltCntJ4UKcw3A6INEbw9wgocQa812CIASQ2fE+SCAbz6JxBjIAlFUnD1lUB7S8PdMPwn9plfQgKQ2A5YZqg6FnBdf0rQXIJYxQWKHXj/rBHSUCT0tHACDlzTA+EwWggvkP5AGIxRxm8jhw=
|
|
|
|
- KCOV_CMD="./kcov-master/tmp/usr/local/bin/kcov"
|
|
|
|
|
2016-01-20 16:43:29 +01:00
|
|
|
cache:
|
2016-01-28 17:39:06 +01:00
|
|
|
apt: true
|
2016-01-20 16:43:29 +01:00
|
|
|
directories:
|
2016-03-15 10:57:09 +01:00
|
|
|
- $TRAVIS_BUILD_DIR/target
|
2016-07-11 18:17:54 +02:00
|
|
|
- $TRAVIS_BUILD_DIR/kcov-master
|
2016-02-18 20:06:59 +01:00
|
|
|
- $HOME/.cargo
|
2016-07-11 18:17:54 +02:00
|
|
|
|
2016-01-28 17:39:06 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-07-11 18:47:58 +02:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-01-28 17:39:06 +01:00
|
|
|
packages:
|
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libelf-dev
|
|
|
|
- libdw-dev
|
2016-07-11 18:47:58 +02:00
|
|
|
- gcc-4.8
|
|
|
|
- g++-4.8
|
2016-03-15 10:57:09 +01:00
|
|
|
|
2016-07-08 13:35:25 +02:00
|
|
|
install:
|
2016-07-14 11:14:44 +02:00
|
|
|
- ([ "$RUN_COVERAGE" = "false" ]) || (test -x $KCOV_CMD) || (
|
|
|
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
|
|
|
tar xzf master.tar.gz &&
|
|
|
|
mkdir -p kcov-master/build &&
|
|
|
|
cd kcov-master/build &&
|
|
|
|
cmake .. &&
|
|
|
|
make && make install DESTDIR=../tmp &&
|
|
|
|
cd
|
|
|
|
)
|
2016-03-28 15:47:57 +02:00
|
|
|
|
2016-07-11 18:56:28 +02:00
|
|
|
script:
|
|
|
|
- if [ "$RUN_TESTS" = "true" ]; then ./test.sh; fi
|
|
|
|
- if [ "$RUN_COVERAGE" = "true" ]; then ./scripts/cov.sh "$KCOV_CMD"; fi
|
|
|
|
|
|
|
|
after_success: |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
[ $TRAVIS_RUST_VERSION = stable ] &&
|
|
|
|
./scripts/doc.sh &&
|
|
|
|
pip install --user ghp-import &&
|
|
|
|
/home/travis/.local/bin/ghp-import -n target/doc &&
|
|
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|