-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
56 lines (47 loc) · 1.15 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
sudo: required
dist: trusty
language: cpp
addons:
apt:
packages:
- clang-4.0
- clang-format-4.0
- libcppunit-dev
- libcunit1-dev
- libgoogle-glog-dev
- libssl-dev
sources:
- llvm-toolchain-trusty-4.0
- ubuntu-toolchain-r-test
compiler:
- gcc
- clang
env:
- FLAGS="--disable-silent-rules --enable-debug"
- FLAGS="--disable-silent-rules"
matrix:
include:
- compiler: clang
env: FLAGS="--disable-silent-rules --enable-asan"
before_install:
- sudo apt-get update -qq
install:
- if [[ "$CXX" == "clang++" ]]; then export CXX="clang++-4.0" CC="clang-4.0"; fi
- ./autogen.sh
script:
- mkdir -p build
- cd build
- ../configure $FLAGS
- find .. -regex '.*\.\(hh?\|cc?\|hpp\|cpp\)$$' | xargs clang-format-4.0 -i -style=file
- git diff --exit-code
- make -j 2
- VERBOSE=yes make -j 2 check
branches:
only:
- master
- stable
notifications:
email:
slack:
secure: XATCKlM3rAr3QUQ5DycBN14CzlMuP1G/lt5kZon8hSM5gweN+GjhK10ypG0cjpZomwEYiDcmH9hCWAolrUQaIU4QMNFYyiy6w2BARJiC7LMo5YhOT+8jOLGAdOUjOjGC2xEyYP/VAolyYGYq5wiRkHi6fhoseQ0+FWRDZtCM64g=