This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
forked from habitat-sh/habitat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
179 lines (179 loc) · 5.65 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
branches:
only:
- master
- auto
env:
global:
- PATH=$HOME/.cargo/bin:$PATH
matrix:
include:
- language: rust
env:
- COMPONENTS=bin LIBSODIUM=$HOME/pkgs/libsodium/1.0.8 LIBARCHIVE=$HOME/pkgs/libarchive/3.2.0 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$LIBARCHIVE/lib/pkgconfig:$LIBSODIUM/lib/pkgconfig" LD_LIBRARY_PATH="LD_LIBRARY_PATH:$LIBARCHIVE/lib:$LIBSODIUM/lib"
rust: stable
sudo: false
addons:
apt:
packages:
- build-essential
- ca-certificates
- curl
- libbz2-dev
- liblzma-dev
- libprotobuf-dev
- libssl-dev
- libzmq3-dev
- pkg-config
cache:
apt: true
cargo: true
directories:
- "$HOME/rust"
- "$HOME/pkgs"
- components/director/target
- components/hab/target
- components/sup/target
before_install:
- ./support/ci/compile_libsodium.sh
- ./support/ci/compile_libarchive.sh
- ./support/ci/install_rustfmt.sh
script:
- ./support/ci/rust_tests.sh
- ./support/ci/lint.sh
- language: rust
env:
- COMPONENTS=lib LIBSODIUM=$HOME/pkgs/libsodium/1.0.8 LIBARCHIVE=$HOME/pkgs/libarchive/3.2.0 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$LIBARCHIVE/lib/pkgconfig:$LIBSODIUM/lib/pkgconfig" LD_LIBRARY_PATH="LD_LIBRARY_PATH:$LIBARCHIVE/lib:$LIBSODIUM/lib"
rust: stable
sudo: false
addons:
apt:
packages:
- build-essential
- ca-certificates
- curl
- libbz2-dev
- liblzma-dev
- libprotobuf-dev
- libssl-dev
- libzmq3-dev
- pkg-config
cache:
apt: true
cargo: true
directories:
- "$HOME/rust"
- "$HOME/pkgs"
- components/builder-dbcache/target
- components/builder-protocol/target
- components/common/target
- components/core/target
- components/depot-client/target
- components/net/target
before_install:
- ./support/ci/compile_libsodium.sh
- ./support/ci/compile_libarchive.sh
- ./support/ci/install_rustfmt.sh
script:
- ./support/ci/rust_tests.sh
- ./support/ci/lint.sh
- language: rust
env:
- COMPONENTS=srv LIBSODIUM=$HOME/pkgs/libsodium/1.0.8 LIBARCHIVE=$HOME/pkgs/libarchive/3.2.0 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$LIBARCHIVE/lib/pkgconfig:$LIBSODIUM/lib/pkgconfig" LD_LIBRARY_PATH="LD_LIBRARY_PATH:$LIBARCHIVE/lib:$LIBSODIUM/lib"
rust: stable
sudo: false
addons:
apt:
packages:
- build-essential
- ca-certificates
- curl
- libbz2-dev
- liblzma-dev
- libprotobuf-dev
- libssl-dev
- libzmq3-dev
- pkg-config
cache:
apt: true
cargo: true
directories:
- "$HOME/rust"
- "$HOME/pkgs"
- components/builder-api/target
- components/builder-jobsrv/target
- components/builder-sessionsrv/target
- components/builder-vault/target
- components/builder-worker/target
- components/depot/target
before_install:
- ./support/ci/compile_libsodium.sh
- ./support/ci/compile_libarchive.sh
- ./support/ci/install_rustfmt.sh
script:
- ./support/ci/rust_tests.sh
- ./support/ci/lint.sh
- language: node_js
node_js: 4.2.6
sudo: required
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- wget
cache:
apt: true
directories:
- components/builder-web/node_modules
- components/builder-web/typings
before_install: npm config set spin=false
install:
- "(cd components/builder-web && npm install)"
script:
- "(cd components/builder-web && npm run travis)"
- sudo -E bash -c "./support/ci/build_builder_web.sh"
#after_success:
#- "hart=$(source ./results/last_build.env && echo $pkg_artifact)"
#- "if [ -n \"$hart\" ]; then hab pkg upload ./results/$hart; fi"
- language: ruby
rvm: 2.3.1
sudo: false
cache:
bundle: true
directories:
- www/build
env:
- AWS_BUCKET=habitat-www
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=AKIAIDANMMC5VSMGERSQ
# AWS_SECRET_ACCESS_KEY
- secure: "dwqNcne26b9MIGhO+t5//nTALVvL1XAHf2SS590Wqh8V3MA9eboalCTPB/8o8N3E0nNwW3EIKSjsecp+AAziEXBSQtJhMzHBQIMhmfLVPvpxZniN6jg+oZwlhj+AkUMz5f95lgwmowHSchQJmJZDKTth/7L+Z3KgD7yVFiJKhWA="
# FASTLY_API_KEY
- secure: gdbeNjLU9smyegb7nNIwqi6oghu2TwQ9u0l0+BtqIUO6y3O/J9orkCGkWhwtaRkOtLVVakduC0qCCZDD24f/2aZoPN4XhHeNL6oDnq9TngKqi4/sOYRUQ5TB8xL+ja3H6Gx9bB1FhpohuMlfTbCnO3lLWP0Oj4btbcsfsYe8ytM=
# FASTLY_SERVICE_KEY
- secure: GoX6A9uqZ7avilS62w+Noju1ntmqK45C98apBrVnym0tDON3W7kJ5sUJiq6x3+oFOxn0QlaOX1Mku5GyesDE+NbGm4YlLLcucTv2gi9iab5HJsxhHNsLgyMWBPCj25n2qcaCQE0g7naRSThnpRFFV+U6wbqLBods0jKbL95yrPY=
install: "(cd www && bundle install)"
script: "(cd www && ./bin/middleman build)"
after_script: ./support/ci/deploy_website.sh
deploy:
provider: s3
access_key_id: AKIAJD2LEPZPVODPFLIQ
secret_access_key:
secure: U1oAoekCDu6Qa94sANnJH9dfa6g0E9GpvDPwnE6Kv2/d8uprXapWtLvVJ8rnrB/4fLgDntqgMpZYbmETbsCkfnX1olxlch6J06Tel/xJPX//mPG7v3ZEYcpyKAfdI1X9je9jP23ijkEnFMtkjlJ/JDOd9nHqsbECeeUY3U8ZiUk=
bucket: habitat-web-www
local-dir: www/build
skip_cleanup: true
acl: public_read
on:
repo: habitat-sh/habitat
after_deploy:
- "./support/purge_website.sh"
notifications:
slack:
on_failure: always
on_success: change
secure: FjTKlrpHSKlUktFSf9W6ANmxWujelaN4bPRletBXkNwmZYwpqN1YC4lFwS16X0J6kNyvHGRva018YsUMtwI/FXtHH3YliyxCivmEoeAlZa+jMdy16pmBGhxo+mPC92SnHt1DhXfQUTstWw3h+Lq2F2MfwrB8k+nVBFJjfrF8HY0=
webhooks: http://52.37.151.35:54856/travis