-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
60 lines (53 loc) · 1.71 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
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
- gcc-6
- g++-6
- 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
- cd tmp
- 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
before_script:
- export HUSKY_ROOT=.
- 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
- compiler: "gcc-6"
env: CC=gcc-6 CXX=g++-6
script:
- mkdir release
- cd release
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBRARY=on ..
# Target list to check if succeed to compile.
- make -j4 Master PI Aggregator HuskyUnitTest husky-shared
# Run unit test.
- ./HuskyUnitTest --gtest_shuffle # To check if the order causes some time-out failures.
# Test if example PI succeeds to run
- ./PI --master_host localhost --master_port 10086 --comm_port 10010 --worker.info localhost:4