Skip to content

Commit 0292e80

Browse files
authored
Merge pull request pxscene#481 from conniefry/osx_release
Skip unit tests and code coverage for release builds
2 parents 9e76f74 + f0862d5 commit 0292e80

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ci/build_osx.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,20 @@ checkError $? 1 "Building pxcore static library failed" "Compilation error" "che
3939
fi
4040
cd $TRAVIS_BUILD_DIR/examples/pxScene2d/src;
4141

42-
if [ "$TRAVIS_PULL_REQUEST" = "false" ]
42+
if [ "$TRAVIS_PULL_REQUEST" = "false" ] ;
43+
then
44+
if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ "$TRAVIS_EVENT_TYPE" = "api" ] ;
4345
then
46+
echo "***************************** Building libpxscene release ****" >> $BUILDLOGS;
47+
make clean;
48+
make libs-mac >>$BUILDLOGS 2>&1;
49+
checkError $? 0
50+
else
4451
echo "***************************** Building libpxscene ****" >> $BUILDLOGS;
4552
make clean;
4653
make libs-mac CODE_COVERAGE=1 >>$BUILDLOGS 2>&1;
4754
checkError $? 0
55+
fi
4856
else
4957
echo "***************************** Building libpxscene ****";
5058
make clean;
@@ -85,6 +93,8 @@ make -j CODE_COVERAGE=1 1>>$BUILDLOGS
8593
checkError $? 0 "make command failed for pxscene target" "Compilation error" "check the errors displayed in this window"
8694
fi
8795

96+
if [ "$TRAVIS_EVENT_TYPE" != "cron" ] && [ "$TRAVIS_EVENT_TYPE" != "api" ] ;
97+
then
8898
ls -lrt $TRAVIS_BUILD_DIR/examples/pxScene2d/src
8999
cd $TRAVIS_BUILD_DIR/tests/pxScene2d;
90100
if [ "$TRAVIS_PULL_REQUEST" = "false" ]
@@ -99,4 +109,4 @@ make clean;
99109
make CODE_COVERAGE=1 1>>$BUILDLOGS;
100110
checkError $? 0 "make command failed for pxscene unittests target" "Compilation error" "check the errors displayed in this window"
101111
fi
102-
112+
fi

0 commit comments

Comments
 (0)