Skip to content

Commit

Permalink
Fix warnings in compilation tests due to -j
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed May 16, 2021
1 parent c1bf144 commit 9bc5d5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ git:

env:
global:
- MAKEFLAGS="-j2"
- NPROC=$(nproc)
- MAKEFLAGS="-j${NPROC}"
- CATCH_DIR="~/catch"
- CATCH_REMOTE="https://github.com/catchorg/Catch2.git"
- CATCH_VERSION=v2.13.6
Expand Down Expand Up @@ -56,6 +57,7 @@ matrix:
compiler: gcc

before_install:
- echo ${NPROC}
- eval "${MATRIX_EVAL}" # determine overriding compiler, if set

install:
Expand All @@ -75,7 +77,9 @@ script:
- cd build
- cmake -Wdev -Werror=dev -DCMAKE_BUILD_TYPE=Debug ${CMAKE_COV} ..
- cmake --build .
- cmake --build . --target test
- unset MAKEFLAGS # drop MAKEFLAGS, (which would affect compilation tests)
- make test ARGS=-j$((${NPROC} * 2)) # but run twice as many compilation tests
# as the number of available `nproc`

after_success: |-
if [ ! -z "${CMAKE_COV}" ]; then
Expand Down

0 comments on commit 9bc5d5f

Please sign in to comment.