]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commitdiff
Travis: Cleanup cache before uploading
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 24 Sep 2018 17:46:36 +0000 (19:46 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 24 Sep 2018 17:46:36 +0000 (19:46 +0200)
.travis.yml

index 33bf00dc177258f60b5cc942f1da3cc389a68813..5a991b7d6c8772dcfa4c6c843ec22736f3bc6bd5 100644 (file)
@@ -41,12 +41,12 @@ matrix:
       script:
         - make BUILDS="$(echo $(grep -v cufft .kcf_builds))"
         - ninja test
-      after_script: find vot2016 -name output.txt -o -name core -print0 | xargs -0 rm -f
       addons:
         apt: { sources: *common_sources, packages: [*common_packages, unzip] }
 
 before_script:
     - make -qp|grep "^BUILDS ="|grep -o '[a-z-]*' | tee .kcf_builds
 
+before_cache: if [ -d vot2016 ]; then find -name output.txt -o -name core -print0 | xargs -0 rm -f; fi
 cache:
   directories: [ vot2016 ]