Browse Source

Travis: No log files for OSX Package build

bel2125 7 năm trước cách đây
mục cha
commit
3fc322faf1
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      .travis.yml

+ 4 - 2
.travis.yml

@@ -106,8 +106,10 @@ script:
   - pwd
   - ls -la unittest
   - echo "Show all test logs:"
-  - for f in unittest/test-*.log; do printf "\n$f:\n"; cat $f; done
-  - for f in unittest/test-*.xml; do printf "\n$f:\n"; cat $f; done
+  - if [ "${MACOSX_PACKAGE}" != "1" ]; then
+      for f in unittest/test-*.log; do printf "\n$f:\n"; cat $f; done;
+      for f in unittest/test-*.xml; do printf "\n$f:\n"; cat $f; done;
+    fi
   - echo "Build and test script DONE"
 
 # Coveralls options: https://github.com/eddyxu/cpp-coveralls/blob/master/README.md