Skip to content

Commit cedf92f

Browse files
committed
Add travis build, correct flags to work with declared gcc version.
1 parent 5390b22 commit cedf92f

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: cpp
2+
3+
compiler: gcc
4+
5+
before_install:
6+
# Set package repository.
7+
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
8+
9+
# Update the system.
10+
- sudo apt-get -qq update
11+
12+
# Get GCC 4.7 (for C++11 support)
13+
- sudo apt-get -qq install g++-4.7
14+
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50
15+
16+
script:
17+
18+
# Perform regression test build against ZeroMQ master + libsodium
19+
- mkdir build_dependencies
20+
- pushd build_dependencies
21+
- echo "*** build libsodium"
22+
- git clone git://github.com/jedisct1/libsodium.git
23+
- ( cd libsodium; ./autogen.sh; ./configure; make check; sudo make install; sudo ldconfig )
24+
- echo "*** build libzmq"
25+
- git clone git://github.com/zeromq/libzmq.git
26+
- ( cd libzmq; ./autogen.sh; ./configure; make check; sudo make install; sudo ldconfig )
27+
- echo "*** build czmq"
28+
- git clone git://github.com/zeromq/czmq
29+
- ( cd czmq; ./autogen.sh; ./configure; make check; sudo make install; sudo ldconfig )
30+
- popd
31+
- echo "*** build czmqpp"
32+
- (./autogen.sh; ./configure; make check )
33+
- echo "*** czmqpp build success"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PKG_CHECK_MODULES([libczmq], [libczmq])
1919
# Do not add contextual build parameters in configuration.
2020
# http://stackoverflow.com/a/4680578
2121
OPTIMIZATIONS="-fvisibility=internal"
22-
WARNINGS="-Wall -Wextra -Wno-format-security -Wno-missing-braces -Wpedantic"
22+
WARNINGS="-Wall -Wextra -Wno-format-security -Wno-missing-braces -pedantic"
2323
SAFEGUARDS="-fvisibility-inlines-hidden -fstack-protector-all"
2424
AM_CXXFLAGS=$WARNINGS" "$SAFEGUARDS" "$OPTIMIZATIONS
2525
AC_SUBST([AM_CXXFLAGS])

0 commit comments

Comments
 (0)