-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 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
50
51
52
53
54
55
56
57
sudo: required
dist: trusty
language: python # workaround for not setting CC/CXX with default value
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
packages:
- build-essential
- cmake
- gcc-4.9
- g++-4.9
- gcc-6
- g++-6
- clang-format-3.8
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 build-essential 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
- sudo cp zmq.hpp /usr/local/include
- cd ../..
- rm -rf tmp
before_script:
- export HUSKY_ROOT=.
- export CLANG_FORMAT=clang-format-3.8
- ./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 ..
- make -j4 Master
- make -j4 PI
- make -j4 HuskyUnitTest
- ./HuskyUnitTest