forked from rethinkdb/rethinkdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.26 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
# Environment
language: cpp
compiler:
- gcc
- clang
env:
- DEBUG=1
- DEBUG=0
# Install build dependencies
before_script:
- nvm install v0.10.0
- sudo apt-get install npm protobuf-compiler protobuf-c-compiler libprotobuf-dev libv8-dev libgoogle-perftools-dev libprotoc-dev default-jre time
- sudo npm install -g [email protected]
- sudo npm install -g [email protected]
- sudo npm install -g [email protected]
- sudo npm install -g mocha
# we need a custom ppa for latest boost libs (1.46, which is on
# Travis, doesn't work with Clang and C++ 11)
- yes | sudo apt-add-repository ppa:jkeiren/ppa
- sudo apt-get update
- sudo apt-get install libboost1.48-all-dev
# Build script
script:
- ./configure
- make -j 3 test-deps DEBUG=$DEBUG
- make test TEST=travis RUN_TEST_ARGS='-j3 -w-' DEBUG=$DEBUG
notifications:
# Email commit author only on build status change
email:
on_success: change
on_failure: change
# Always ping a webhook when something is broken. The webhook looks
# only for builds in next, and notifies everyone on the dev team
# that next is broken. This isn't currently possible directly with
# Travis.
webhooks:
urls:
- https://zapier.com/hooks/catch/n/ux03n/
on_success: never
on_failure: always