Skip to content

Commit 3e852e2

Browse files
committed
Disable incremental compilation on CI
For some reason, incremental files are changing on CI even when no code changes. Turning off incremental compilation should help avoid uploading a new cache with every single build. This commit also removes `target/.rustc_info.json` from the CI cache
1 parent 3248b4d commit 3e852e2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
- DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
1515
- TEST_DATABASE_URL=postgres://postgres:@localhost/cargo_registry_test
1616
- CARGO_TARGET_DIR=target
17+
- CARGO_INCREMENTAL=0
1718
- PERCY_PARALLEL_TOTAL=2
1819
# Percy secrets are included here to enable Percy's GitHub integration
1920
# on community-submitted PRs

script/ci/prune-cache.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ for name in $bin_names; do
2525
rm -v target/debug/deps/$normalized-*
2626
done
2727

28+
rm -v target/.rustc_info.json
29+
2830
echo "Final cache size:"
2931
du -hs target/debug

0 commit comments

Comments
 (0)