summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: af36bdd717a853be9ada6f2b763520650c84b1b6 (plain)
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
sudo: false
language: rust
matrix:
  fast_finish: true
  include:
    - rust: nightly
    - rust: beta
    - rust: stable

script:
- cargo build
- cargo test

cache:
  cargo: true
  apt: true
  directories:
  - target/debug/deps
  - target/debug/build

addons:
  apt:
    packages:
    - libcurl4-openssl-dev
    - libelf-dev
    - libdw-dev
    - binutils-dev # required for `kcov --verify`
    - libbfd-dev # required for `kcov --verify`

after_success: |
  [ $TRAVIS_RUST_VERSION = stable ] &&
  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 --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/shiplift-* &&
  [ $TRAVIS_BRANCH = master ] &&
  [ $TRAVIS_PULL_REQUEST = false ] &&
  [ $TRAVIS_RUST_VERSION = stable ] &&
  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

env:
  global:
    secure: g6bA+i74nfMtxyHLJHIKd3wD66Mwpr1KcEkOlH3bWtujFj33KcC2AOjeuFtw4i1AjYW1f4ni1UbANJOwnfHPrgnCE/OSLJstXg37f7uA+CAOsqiePr1dnbEozGoY4hSiudYeteX/IX2zREXSOjnSjUKmpsmce1ZUEBxdYyDMiB4=