11#! /bin/bash
2- set -ev
2+ # set -ev
33ROOT=${TRAVIS_BUILD_DIR:- " $( cd " $( dirname " $0 " ) /../../.." ; pwd -P ) " }
44# Add compiler flag to reduce memory usage to enable builds to complete
55# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746#c7
@@ -11,28 +11,33 @@ if [ "$OPT" == "qbs" ]; then
1111 echo " building with qbs"
1212 export PATH=" $TRAVIS_BUILD_DIR /linuxbrew/.linuxbrew/bin:$HOME /linuxbrew/.linuxbrew/sbin:$PATH "
1313
14- echo " **** Building emptyExample ****"
14+ echo " ##[group] **** Building emptyExample ****"
1515 cd $ROOT /scripts/templates/linux64
1616 sed -i " s/property bool makeOF: true/property bool makeOF: false/g" qtcreator.qbs
1717 qbs
18+ echo " ##[endgroup]"
1819else
1920 echo " building with makefiles"
20- echo " **** Building OF core ****"
2121 cd $ROOT
22+
23+ echo " ##[group]**** Building OF core ****"
2224 # this carries over to subsequent compilations of examples
2325 echo " PLATFORM_CFLAGS += $CUSTOMFLAGS " >> libs/openFrameworksCompiled/project/linux64/config.linux64.default.mk
2426 sed -i " s/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = .*/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = -g0/" libs/openFrameworksCompiled/project/makefileCommon/config.linux.common.mk
2527 cd libs/openFrameworksCompiled/project
26- make -j
28+ make -j2
29+ echo " ##[endgroup]"
2730
28- echo " **** Building emptyExample ****"
31+ echo " ##[group] **** Building emptyExample ****"
2932 cd $ROOT /scripts/templates/linux64
30- make -j
33+ make -j2
34+ echo " ##[endgroup]"
3135
32- echo " **** Building allAddonsExample ****"
36+ echo " ##[group] **** Building allAddonsExample ****"
3337 cd $ROOT
3438 cp scripts/templates/linux64/Makefile examples/templates/allAddonsExample/
3539 cp scripts/templates/linux64/config.make examples/templates/allAddonsExample/
3640 cd examples/templates/allAddonsExample/
37- make -j
41+ make -j2
42+ echo " ##[endgroup]"
3843fi
0 commit comments