forked from davidmoreno/onion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 837 Bytes
/
.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
language: cpp
compiler:
- gcc
- clang
sudo: false
git:
depth: 1
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- clang-3.7
- g++-5
- gcc-5
- libhiredis-dev
install:
# install some packages from Ubuntu's default sources
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
script:
# make distcheck still does not work on travis
- mkdir build
&& cd build
&& cmake ..
-DCMAKE_C_FLAGS="-Werror"
-DCMAKE_CXX_FLAGS="-Werror"
&& make VERBOSE=1
&& (make test || true)
after_script:
- if test -f ./Testing/Temporary/LastTest.log; then
echo "cat test logs:";
cat ./Testing/Temporary/LastTest.log;
fi