gitlab-ci: Clean tree on Windows after job
authorBen Gamari <ben@smart-cactus.org>
Mon, 24 Dec 2018 20:34:00 +0000 (15:34 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 25 Dec 2018 03:35:13 +0000 (22:35 -0500)
It seems like currently the runner doesn't delete the working tree after
finishing a job. At least we can delete the binary artifacts for now.

.gitlab-ci.yml

index d86de7a..25771c2 100644 (file)
@@ -319,6 +319,7 @@ validate-x86_64-linux-deb9-unreg:
   after_script:
     - rd /s /q tmp
     - robocopy /np /nfl /ndl /e "%APPDATA%\cabal" cabal-cache
+    - bash -c 'make clean || true'
   cache:
     paths:
       - cabal-cache