File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,20 @@ checkError $? 1 "Building pxcore static library failed" "Compilation error" "che
39
39
fi
40
40
cd $TRAVIS_BUILD_DIR /examples/pxScene2d/src;
41
41
42
- if [ " $TRAVIS_PULL_REQUEST " = " false" ]
42
+ if [ " $TRAVIS_PULL_REQUEST " = " false" ] ;
43
+ then
44
+ if [ " $TRAVIS_EVENT_TYPE " = " cron" ] || [ " $TRAVIS_EVENT_TYPE " = " api" ] ;
43
45
then
46
+ echo " ***************************** Building libpxscene release ****" >> $BUILDLOGS ;
47
+ make clean;
48
+ make libs-mac >> $BUILDLOGS 2>&1 ;
49
+ checkError $? 0
50
+ else
44
51
echo " ***************************** Building libpxscene ****" >> $BUILDLOGS ;
45
52
make clean;
46
53
make libs-mac CODE_COVERAGE=1 >> $BUILDLOGS 2>&1 ;
47
54
checkError $? 0
55
+ fi
48
56
else
49
57
echo " ***************************** Building libpxscene ****" ;
50
58
make clean;
@@ -85,6 +93,8 @@ make -j CODE_COVERAGE=1 1>>$BUILDLOGS
85
93
checkError $? 0 " make command failed for pxscene target" " Compilation error" " check the errors displayed in this window"
86
94
fi
87
95
96
+ if [ " $TRAVIS_EVENT_TYPE " != " cron" ] && [ " $TRAVIS_EVENT_TYPE " != " api" ] ;
97
+ then
88
98
ls -lrt $TRAVIS_BUILD_DIR /examples/pxScene2d/src
89
99
cd $TRAVIS_BUILD_DIR /tests/pxScene2d;
90
100
if [ " $TRAVIS_PULL_REQUEST " = " false" ]
@@ -99,4 +109,4 @@ make clean;
99
109
make CODE_COVERAGE=1 1>> $BUILDLOGS ;
100
110
checkError $? 0 " make command failed for pxscene unittests target" " Compilation error" " check the errors displayed in this window"
101
111
fi
102
-
112
+ fi
You can’t perform that action at this time.
0 commit comments