forked from habitat-sh/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (65 loc) · 2.21 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
branches:
only:
- master
- /^sentinel.+$/
os: linux
env:
global:
- PATH=$HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin:$HOME/.cargo/bin:$PATH
matrix:
include:
# Testing Jobs
########################################################################
#
# Job for testing Habitat Core Rust crate components
#
- language: rust
env:
- COMPONENTS=lib
rust: 1.29.0
sudo: required
addons:
apt:
sources:
- kalakris-cmake
packages:
- build-essential
- ca-certificates
- cmake
- curl
- libbz2-dev
- liblzma-dev
- libprotobuf-dev
- libssl-dev
- pkg-config
cache:
apt: true
cargo: true
directories:
- "$HOME/pkgs"
before_script:
- rustup component add rustfmt-preview
before_install:
- ./support/ci/compile_libsodium.sh
- ./support/ci/compile_libarchive.sh
- ./support/ci/compile_zmq.sh
- source ./support/ci/rust_env.sh
script:
- ./support/ci/rust_tests.sh
- ./support/ci/lint.sh
notifications:
webhooks:
urls:
- http://bots.habitat.sh:4567/travis
on_success: always
on_failure: always
on_start: always
slack:
template:
- "%{repository} (%{commit}) : %{message}"
- "Build details: %{build_url}"
- "Status: %{result}"
secure: "bRaFFuuxhV4bv53JzWRWXqe2vZNfQ3UvhNJnqwxp+hPG6wYxJ8hsvPQtUq7esetDhnlru5aje2tUMioBcZB33ByO/DF4Q52WEi3nwdOmVkcmbn+FJEpCX7y+vfwglzHC1UvtOm2qIaIKjSsWY5vK05Ee5QIZtZtO0Qa6jg9JF521erSYqNV40qJwsEfvsm16RHVuV6tJGmz20EDXt47c3D1aTkhDCtufJWHNOj0pG6nGw7UVlh/xpEm3SikW141s6PtZ8dsG57emYW902s1F1G+DJRGVC0TquatWCqc7PYnmuZMofR01LMfXvya0O6TcXqppHBBm2snnucQeeB+r/tyPJTFulXpUOvDHz/Elhj+Bu6hxOufyWBRQCOnr6ubclxiFYMK4At8qAQE51HjhT4aqfxqHaOZdy2STwi6HPVdQvd8wCVnWYz6DbBLx6c1FBX93uuj/n3nP3LX9+IOc5O/gpHC91m/Fids5QvKVVpKV71ZNMNouJANIw/qAa2bZ6b14RNusUo0zTB4CjzvNbItUNvG5hIhtQXHS3jobfZekYFW42e+jlCMVYpBzSCNi9dwsfXvMsRKoW7Cel5fnscYneCagHbGDC1azi+Uv+dWY13y2MaGFv8QForFt2yQRGHl82ht91sEqrBiF1F4fs9mTBcrLq3oFDrUKKaH87WI="
on_pull_requests: false
on_failure: always
on_success: change