From 46834a6ee9be099a6009db792b7feb425d556ff9 Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Sun, 8 Sep 2019 23:11:31 +0200 Subject: [PATCH] Let's build the res zip only if needed --- tools/travis-script.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/travis-script.sh b/tools/travis-script.sh index b61f11f15..f7b105db9 100755 --- a/tools/travis-script.sh +++ b/tools/travis-script.sh @@ -25,12 +25,14 @@ ant update > error.txt cd ../.. # we create resource package -cd projects/mtg/bin/Res -python createResourceZip.py -# if we let the zip here, Wagic will use it in the testsuite -# and we'll get 51 failed test cases -mv core_*.zip ../../../../core.zip -cd ../../../.. +if [ "$BUILD_RES" = "YES" ]; then + cd projects/mtg/bin/Res + python createResourceZip.py + # if we let the zip here, Wagic will use it in the testsuite + # and we'll get 51 failed test cases + mv core_*.zip ../../../../core.zip + cd ../../../.. +fi # we're building a PSP binary here if [ "$BUILD_PSP" = "YES" ]; then