Do not zip and deploy for check formatting
authorLei Zhang <antiagainst@google.com>
Tue, 5 Dec 2017 03:43:26 +0000 (22:43 -0500)
committerLei Zhang <antiagainst@google.com>
Tue, 5 Dec 2017 13:02:33 +0000 (08:02 -0500)
.travis.yml

index 08fa806..a572d40 100644 (file)
@@ -98,7 +98,7 @@ script:
 
 after_success:
   # Create tarball for deployment
-  - if [[ "${CC}" == "clang" && "${BUILD_ANDROID_MK}" != "ON" && "${BUILD_ANDROID_CMAKE}" != "ON" ]]; then
+  - if [[ "${CC}" == "clang" && "${BUILD_ANDROID_MK}" != "ON" && "${BUILD_ANDROID_CMAKE}" != "ON" && "${CHECK_FORMAT}" != "ON" ]]; then
       cd install;
       export TARBALL=SPIRV-Tools-master-${TRAVIS_OS_NAME}-${BUILD_TYPE}.zip;
       find . -print | zip -@ ${TARBALL};
@@ -117,7 +117,7 @@ deploy:
   api_key: ${spirvtoken}
   on:
     branch: master
-    condition: ${CC} == clang && ${BUILD_ANDROID_MK} != ON && ${BUILD_ANDROID_CMAKE} != ON
+    condition: ${CC} == clang && ${BUILD_ANDROID_MK} != ON && ${BUILD_ANDROID_CMAKE} != ON && ${CHECK_FORMAT} != ON
   file: ${TARBALL}
   skip_cleanup: true
   overwrite: true