-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
85 lines (70 loc) · 2.19 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
# Travis-CI.org build script
# Default travis-CI environment is Ubuntu 12.04.5 LTS "precise"
# which is pretty old:
# (gcc 4.6.3, which doesn't know about -std=c++11
# and fails with
# ch_frb_io.hpp:279:28: sorry, unimplemented: non-static data member initializers
# ch_frb_io.hpp:279:28: error: ISO C++ forbids in-class initialization of non-const static member 'udp_port'
# )
# "trusty" is Ubuntu 14.04.5 LTS
# gcc 4.8.4
# and compiles our code just fine. Use that!
dist: trusty
# use containerized infrastructure (for faster startup; no sudo)
sudo: false
language: cpp
compiler:
- gcc
- clang
before_install:
- pip install --user cpp-coveralls
- pwd
- BUILD_DIR=$(pwd)
- cd
- wget https://github.com/msgpack/msgpack-c/releases/download/cpp-2.1.0/msgpack-2.1.0.tar.gz
- tar xzf msgpack-2.1.0.tar.gz
- pwd
- export MSGPACK_INC_DIR=$(pwd)/msgpack-2.1.0/include
- cd
- cd libzmq
- if [ ! -d "zeromq-4.2.1" ]; then (wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz && tar xzf zeromq-4.2.1.tar.gz); fi
- cd zeromq-4.2.1
- ./configure --prefix=${HOME}/zmq --disable-perf --disable-curve -disable-curve-keygen --without-docs
- make
- make install
- export ZMQ_INC_DIR=~/zmq/include
- export ZMQ_LIB_DIR=~/zmq/lib
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ZMQ_LIB_DIR}
- export PKG_CONFIG_DIR=${PKG_CONFIG_DIR}:${ZMQ_LIB_DIR}/pkgconfig
- cd
- wget https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp
- cp zmq.hpp $ZMQ_INC_DIR
script:
- pwd
- cd $BUILD_DIR
- pwd
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:~/chime/lib
- ln -s site/Makefile.local.travis Makefile.local
- make COVERAGE=yes OPTIMIZE=no
- make install
- ./test-intensity-hdf5-file yes
- ./test-assembled-chunk
- ./test-log
# Some tests are too slow to run with -O0...
# - make clean
# - make COVERAGE=yes
# - ./test-misc
# Takes an hour...
# - ./test-network-streams
after_success:
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'
addons:
apt:
packages:
- libhdf5-serial-dev
- liblz4-dev
# msgpack in 'trusty' is v0.5.4 -- too early for us.
# - libmsgpack-dev
cache:
directories:
- $HOME/libzmq