travis: Move MAKEFLAGS to .travis.yml

This commit is contained in:
patrick96 2018-04-08 15:29:31 +02:00 committed by NBonaparte
parent c900a9958d
commit 6cee262225
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ language: cpp
env: env:
global: global:
- JOBS=4 - JOBS=4
- MAKEFLAGS="-j ${JOBS}"
- POLYBAR_BUILD_TYPE="compile" - POLYBAR_BUILD_TYPE="compile"
script: source ${TRAVIS_BUILD_DIR}/common/travis/build.sh script: source ${TRAVIS_BUILD_DIR}/common/travis/build.sh

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
cd "${TRAVIS_BUILD_DIR}/build" || false cd "${TRAVIS_BUILD_DIR}/build" || false
make -j"${JOBS}" || exit $? make || exit $?

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
r=0 r=0
make -j"${JOBS}" all_unit_tests make all_unit_tests
for test in tests/unit_test.*; do for test in tests/unit_test.*; do
[ -x "$test" ] || continue [ -x "$test" ] || continue