-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
36 lines (31 loc) · 1 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
language: rust
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libudev-dev
- libdw-dev
- binutils-dev # optional: only required for the --verify flag of coveralls
rust:
- beta
- stable
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo --only stable doc
after_success:
- bash ./scripts/deploy-gh-pages.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis-cargo coveralls --no-sudo --verify; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/test-*; fi
sudo: false
notifications:
irc:
channels: "chat.freenode.net#openstack-charms"
template: "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} || Change view: %{compare_url}"
on_success: change
skip_join: true