浏览代码

[Travis] Reduce cache bloat - don't save build artefacts

ashthespy 5 年之前
父节点
当前提交
09eef912cc
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      .travis.yml

+ 11 - 1
.travis.yml

@@ -6,7 +6,17 @@ rust:
   - nightly
 
 cache: cargo
-
+# Reduce cache bloat 
+before_cache:
+  - rm -rfv "$TRAVIS_HOME/.cargo/registry/src"
+  - rm -rfv target/debug/incremental/{librespot,build_script_build}-*
+  - rm -rfv target/debug/.fingerprint/librespot-*
+  - rm -rfv target/debug/build/librespot-*
+  - rm -rfv target/debug/deps/liblibrespot-*
+  - rm -rfv target/debug/deps/librespot-*
+  - rm -rfv target/debug/{librespot,liblibrespot}.d
+  - cargo clean -p librespot librespot-core librespot-connect librespot-audio librespot-metadata  librespot-playback
+  
 addons:
   apt:
     packages: