From 724dc088ca0f1ea7143418555c9622b7f695f37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Fri, 27 Jul 2018 09:13:02 +0200 Subject: [PATCH] travis: Fix test in wrong path, and jobs parallelization --- .travis.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 10bff99e..9577ab92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: cpp +env: + global: + - MAKEFLAGS="-j 12" + matrix: include: - compiler: clang @@ -67,8 +71,14 @@ matrix: # TODO: Use the same branch name if libtorrent has it. before_install: - git clone https://github.com/rakshasa/libtorrent.git - - cd libtorrent && ./autogen.sh && CXX="$COMPILER" ./configure && make -j12 && sudo make install + - | + pushd libtorrent \ + && ./autogen.sh \ + && CXX="$COMPILER" ./configure --prefix=/usr \ + && make \ + && sudo make install \ + && popd script: -- ./autogen.sh && CXX="$COMPILER" ./configure && make -j12 -- if [ ! $SKIP_CHECK ]; then make -j12 check; fi +- ./autogen.sh && CXX="$COMPILER" ./configure && make +- if [ ! $SKIP_CHECK ]; then make check; fi