From 09eef912cc17252b13828f9fc9ba52bdd2f63242 Mon Sep 17 00:00:00 2001 From: ashthespy Date: Thu, 7 Nov 2019 13:16:17 +0100 Subject: [PATCH 1/2] [Travis] Reduce cache bloat - don't save build artefacts --- .travis.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6a28f10..fc3294a 100644 --- a/.travis.yml +++ b/.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: From 1719ffc906cd15b21b4a37c821337b3ddf359cc2 Mon Sep 17 00:00:00 2001 From: ashthespy Date: Fri, 8 Nov 2019 09:58:43 +0100 Subject: [PATCH 2/2] [Travis] Build examples --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index fc3294a..0c15076 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ before_script: script: - cargo build --locked --no-default-features + - cargo build --locked --examples - cargo build --locked --no-default-features --features "with-tremor" - cargo build --locked --no-default-features --features "with-vorbis" - cargo build --locked --no-default-features --features "alsa-backend"