Skip to content

Commit

Permalink
Problem: Travis container with sudo long start
Browse files Browse the repository at this point in the history
Solution: Move sudo required build to top to start sooner to get better
overall build time.
  • Loading branch information
kurdybacha committed May 16, 2018
1 parent 8dfec11 commit 9b0dd89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ matrix:
# GCC on Linux
##########################################################

# GCC default, draft disabled, latest libzmq
- os: linux
env: ZMQ_VERSION=4.2.5

# GCC default, draft disabled, older libzmq, libzmq with pkg-config
# GCC default, draft disabled, older libzmq with pkg-config
- os: linux
sudo: true
env: ZMQ_VERSION=4.2.0 BUILD_TYPE=pkgconf

# GCC default, draft disabled, latest libzmq
- os: linux
env: ZMQ_VERSION=4.2.5

# GCC 7, draft enabled, latest libzmq
- os: linux
addons:
Expand Down
4 changes: 3 additions & 1 deletion ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ pushd .
ZeroMQ_DIR=${LIBZMQ} cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
cmake --build ${CPPZMQ} -- -j${JOBS}
if [ "$BUILD_TYPE" = "pkgconf" ] ; then
sudo cmake --build ${CPPZMQ} --target install
pushd .
cd ${CPPZMQ} && sudo make install
popd
fi
cd ${CPPZMQ}
ctest -V -j${JOBS}
Expand Down

0 comments on commit 9b0dd89

Please sign in to comment.