forked from rsocket/rsocket-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (110 loc) · 3.14 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
# Travis CI config for rsocket-cpp.
sudo: false
dist: trusty
language: cpp
os: linux
addons:
apt:
sources: &common_srcs
- ubuntu-toolchain-r-test
packages: &common_deps
- lcov
# Folly dependencies
- autoconf
- autoconf-archive
- automake
- binutils-dev
- g++
- libboost-all-dev
- libdouble-conversion-dev
- libevent-dev
- libgflags-dev
- libgoogle-glog-dev
- libiberty-dev
- libjemalloc-dev
- liblz4-dev
- liblzma-dev
- libsnappy-dev
- libssl-dev
- libtool
- make
- pkg-config
- zlib1g-dev
matrix:
include:
# Set COMPILER environment variable instead of CC or CXX because the latter
# are overriden by Travis. Setting the compiler in Travis doesn't work
# either because it strips version.
- env: COMPILER=clang-4.0
addons:
apt:
sources:
- *common_srcs
- llvm-toolchain-trusty-4.0
packages:
- *common_deps
- clang-4.0
- libstdc++-4.9-dev
- env: COMPILER=gcc-4.9
addons:
apt:
sources:
- *common_srcs
packages:
- *common_deps
- g++-4.9
- env: COMPILER=gcc-5
addons:
apt:
sources:
- *common_srcs
packages:
- *common_deps
- g++-5
- env: COMPILER=gcc-6
addons:
apt:
sources:
- *common_srcs
packages:
- *common_deps
- g++-6
env:
global:
- BUILD_TYPE=Debug ASAN=On CTEST_OUTPUT_ON_FAILURE=1
- secure: |-
DOPCvF/oFMkzTHcE1U7jJ1z3isJYKySiJfuzZQqY6IUmjvVxJuE2k4rvz1pURdqYIXs/3k
OHhtf59q0VJcCsdurpGXrF+E51JLQyG6SM1L3JzjVjEZ60a7laUyPer7rNnrj6g4K7CK0K
cSZKOAsrRxBGGllR5XnxYE9p6zEEPuDxbPJLS8ruDNI2LBCx0eMW/pzTvY4IA+pc2TlGBS
h85LH+p+aelp6Q5GKRFWxxy8ju3FcUI4LfJChEgn9Wb9dZ9VsBX1gZjUgXZ1gs0yp2Wcoh
kJuITsb1oRINA0DnwpADlAHpl/+t8NZZKwknTsEHW5KQtvnuqM4nnN4KszkMZQDhlOxgNp
vnvcS2lWlbeAE3f7lgtPZDWkmo8SaR+MRH0F1/+nnC7pdMvWoFRfkq5VsXDOiCMrXEJMZF
CokHdtxhfNRpwvqchD2BaYQ9xOAToi2GhbV4k/5Zc5bO+bxnTmlFR6fWtHtChCIXLrkKyG
LFlDvU4lS9eeaYzv4OaXL/HZ3HPn91/F96ZSVm8X17NmYwD1wfj+ad3D8YMXhWnnBQYpfF
eHz/lHAoLXWg/BhtgQbPmMYYKRrQaH7EKzBbqEHv6PhOk7vLMtdx5X7KmhVuFjpAMbaYoj
zwxxH0u+VAnVB5iazzyjhySjvzkvx6pGzZtTnjLJHxKcp9633z4OU=
cache:
directories:
- $HOME/folly
before_script:
# Install lcov to coveralls conversion + upload tool.
- gem install coveralls-lcov
- lcov --directory build --zerocounters
script:
- mkdir build &&
cd build &&
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRSOCKET_CC=$COMPILER
-DRSOCKET_ASAN=$ASAN -DRSOCKET_INSTALL_DEPS=True .. &&
make -j8 &&
make test
- cd ..
- ./scripts/tck_test.sh -c cpp -s cpp
- ./scripts/tck_test.sh -c java -s java
- ./scripts/tck_test.sh -c java -s cpp
- ./scripts/tck_test.sh -c cpp -s java
- cd build && make coverage
after_success:
# Upload to coveralls.
- if [ -f coverage.info ]; then
coveralls-lcov --repo-token=${COVERALLS_TOKEN} coverage.info;
fi