forked from softprops/hubcaps
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (43 loc) · 2.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: false
language: rust
matrix:
fast_finish: true
include:
- rust: nightly
- rust: beta
- rust: stable
script:
- RUSTFLAGS="$RUSTFLAGS -C link-dead-code" cargo test
cache:
cargo: true
apt: true
directories:
- target/debug/deps
- target/debug/build
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- cmake
- gcc
- binutils-dev # required for `kcov --verify`
after_success: |
[ $TRAVIS_RUST_VERSION = stable ] &&
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
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 &&
for file in target/debug/hubcaps-*; do mkdir -p "target/cov/$(basename $file)"; ./kcov-master/tmp/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
echo "covered" &&
cargo doc --no-deps &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
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 &&
echo "documented"
env:
global:
secure: gHWn3H6NsBIVoD0mHltchtXX3RXBs8xvKKlPTR0EiQTYyQFoaf9EcXvQs8KSoyr+vRr2aHWr50+Wn/rgMFPAAZH7tpg2+nr/eDp6hse+RLLQ4lEIqfvvqYStA6N7M6W/X4oZn6V91j5N6UoHi543TuTM9pE7XkE87JwwRteJWcXacZxMjcq1CIW5HblNmHtPAL9Sf7ae3am1qa2rebm+WlCybJYkZ8t0wfH2L1WmFYU9xDibLaX9hGaM9j1DVbKxRCMDpAAIoPT/z9YWuCIkHQEhrmBNp5izsLEFMs+fTpy1+cyMIPY47ewQRB4EOdztwLfZqTwuW4dezs+qbqtRNOBY4oRPTSpvr8vNQEyrNOPs0kvPXvGWnI3nxUBVl9V9t2sHkANeQen+oNAMs59ocWyJlOlUWNOT3vN52JJqvfMWVw7P5IVDPiWxAGEM0DCZy7F++9Ls08nl+HM3luDiSCJDPUzq35BBLBa/SchdX6uUAo1uimfINfz9pnmjSPDoHwXYoPZv60msHwgsZTVUeBpm8bBRb+vc3ZnonPsRVK/JKwr3cjrSebBW7FZbaF9vZo/l5FxdPewJd/N1mU3l+djWMXdjKcdxM8+3JGACx3gjCLZwSaBd2ii4Qy7/FK2byrhBvZv8I0k08GhQ9uJfFgbklMxVbvz8qhuKjIkgrYM=