-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
49 lines (42 loc) · 1.28 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
sudo: required
dist: trusty
group: edge
language: python # workaround for not setting CC/CXX with default value
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
packages:
- build-essential
- cmake
- gcc-4.9
- g++-4.9
- clang-format-3.9
before_install:
- sudo add-apt-repository -y ppa:kojoley/boost
- sudo apt-get -q update
- sudo apt-get install -qq software-properties-common
- sudo apt-get install -qq libgoogle-perftools-dev libzmq3-dev mercurial git
- sudo apt-get -y install libboost-{chrono,program-options,date-time,thread,system,filesystem,regex,serialization}1.58{-dev,.0}
install:
- mkdir tmp-zmq
- cd tmp-zmq
- git clone https://github.com/zeromq/cppzmq
- cd cppzmq
- git reset --hard 4648ebc9643119cff2a433dff4609f1a5cb640ec # Since only libzmq3-dev can be installed. The new zmq.hpp requires version above 4.
- sudo cp zmq.hpp /usr/local/include
- cd ../..
- rm -rf tmp-zmq
before_script:
- export CLANG_FORMAT=clang-format-3.9
- ./scripts/lint.py
- ./scripts/clang-format.py -o check
matrix:
include:
- compiler: "gcc-4.9"
env: CC=gcc-4.9 CXX=g++-4.9
script:
- mkdir release
- cd release
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBRARY=on ..