Skip to content

Commit

Permalink
SAIL: Use '--parallel 2' in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Nov 3, 2023
1 parent 407384a commit cba3c64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ script:
echo " *** Building with $@ ***"
echo
local cmake_parallel_options="--parallel 2"
eval $@
cd "$TRAVIS_BUILD_DIR"
Expand All @@ -145,7 +147,7 @@ script:
fail_on_error cmake -A x64 -DBUILD_SHARED_LIBS="$BUILD_SHARED_LIBS" -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DSAIL_DEV=ON -DSAIL_COMBINE_CODECS="$SAIL_COMBINE_CODECS" ..
fail_on_error cmake --build . --config $CMAKE_BUILD_TYPE --target install
fail_on_error cmake --build . --config $CMAKE_BUILD_TYPE $cmake_parallel_options --target install
cd tests
fail_on_error ctest -C $CMAKE_BUILD_TYPE --output-on-failure
Expand All @@ -162,7 +164,7 @@ script:
fail_on_error cmake -DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
-DBUILD_SHARED_LIBS="$BUILD_SHARED_LIBS" -DSAIL_DEV=ON -DSAIL_COMBINE_CODECS="$SAIL_COMBINE_CODECS" ..
fail_on_error cmake --build .
fail_on_error cmake --build . $cmake_parallel_options
fail_on_error sudo make install
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
Expand Down

0 comments on commit cba3c64

Please sign in to comment.