-
Notifications
You must be signed in to change notification settings - Fork 98
/
.travis.yml
117 lines (106 loc) · 3.29 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
# 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
- binutils-dev
- g++
- libboost-all-dev
- libdouble-conversion-dev
- libevent-dev
- libgflags-dev
- libgoogle-glog-dev
- libiberty-dev
- liblz4-dev
- liblzma-dev
- libsnappy-dev
- libssl-dev
- make
- zlib1g-dev
matrix:
include:
- env: COMPILER_EVAL="CC=clang-6.0 CXX=clang++-6.0"
addons:
apt:
sources:
- *common_srcs
- llvm-toolchain-trusty-6.0
packages:
- *common_deps
- clang-6.0
- libstdc++-4.9-dev
- env: COMPILER_EVAL="CC=gcc-5 CXX=g++-5"
addons:
apt:
sources:
- *common_srcs
packages:
- *common_deps
- g++-5
- libjemalloc-dev
- env: COMPILER_EVAL="CC=gcc-6 CXX=g++-6"
addons:
apt:
sources:
- *common_srcs
packages:
- *common_deps
- g++-6
- libjemalloc-dev
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=
before_script:
- eval "$COMPILER_EVAL"
- export DEP_INSTALL_DIR=$PWD/build/dep-install
# Ubuntu trusty only comes with OpenSSL 1.0.1f, but we require
# at least OpenSSL 1.0.2 for ALPN support.
- curl -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1.tar.gz -o OpenSSL_1_1_1.tar.gz
- tar -xzf OpenSSL_1_1_1.tar.gz
- cd openssl-OpenSSL_1_1_1
- ./config --prefix=$DEP_INSTALL_DIR no-shared
- make -j4
- make install_sw install_ssldirs
- cd ..
# Install lcov to coveralls conversion + upload tool.
- gem install coveralls-lcov
- lcov --version
# Build folly
- ./scripts/build_folly.sh build/folly-src $DEP_INSTALL_DIR
script:
- cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRSOCKET_ASAN=$ASAN
-DCMAKE_PREFIX_PATH=$DEP_INSTALL_DIR
-DRSOCKET_BUILD_WITH_COVERAGE=ON ..
- make -j4
- lcov --directory . --zerocounters
# - make test
# - make coverage
# - 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
after_success:
# Upload to coveralls.
- if [ -f coverage.info ]; then
coveralls-lcov --repo-token=${COVERALLS_TOKEN} coverage.info;
fi