File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Travis CI script
2
+
3
+ language : c
4
+
5
+ os :
6
+ - linux
7
+ # - osx
8
+
9
+ dist : trusty
10
+
11
+ cache : ccache
12
+
13
+ env :
14
+ matrix :
15
+ # - BUILD_TYPE=cmake DRAFT=enabled
16
+ - BUILD_TYPE=cmake
17
+
18
+ matrix :
19
+ include :
20
+ # - env: BUILD_TYPE=cmake DO_CLANG_FORMAT_CHECK=1 CLANG_FORMAT=/usr/local/clang-5.0.0/bin/clang-format
21
+ # os: linux
22
+ # addons:
23
+ # apt:
24
+ # sources:
25
+ # - llvm-toolchain-trusty-5.0
26
+ # packages:
27
+ # - clang-5.0
28
+
29
+ sudo : required
30
+
31
+ # Build and check this project according to the BUILD_TYPE
32
+ script :
33
+ - chmod +x ci_build.sh
34
+ - ./ci_build.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -x
4
+
5
+ install_zeromq () {
6
+ pushd .
7
+
8
+ mkdir libzmq
9
+ cd libzmq
10
+ curl -L https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION} /zeromq-${ZMQ_VERSION} .tar.gz > zeromq.tar.gz
11
+ tar -xvzf zeromq.tar.gz
12
+ cd zeromq-${ZMQ_VERSION}
13
+
14
+ mkdir build
15
+ cd build
16
+ cmake ..
17
+ sudo make -j4 install
18
+
19
+ popd
20
+ }
21
+
22
+ # build zeromq first
23
+
24
+ if [ " ${ZMQ_VERSION} " != " " ] ; then install_zeromq ; fi
25
+
26
+ # build cppzmq
27
+
28
+ mkdir build
29
+ cd build
30
+ cmake ..
31
+ sudo make -j4 install
32
+
33
+ # build cppzmq tests
34
+ # cd tests
35
+ # mkdir build
36
+ # cd build
37
+ # cmake ..
38
+ # make -j5 test ARGS="-V"
You can’t perform that action at this time.
0 commit comments