Travis: Show cache sizes before upload

Uploading the cache takes several minutes. This gives us a handy way to tell
which parts the worst culprits are.

The Toolchain cache seems to be the worst offender by far, because the binary
size nearly doubled when we upgraded from gcc9 to gcc10.
This commit is contained in:
Ben Wiederhake 2020-07-28 23:13:48 +02:00 committed by Andreas Kling
parent a2ad0ae5fc
commit c6c9679cfc

View file

@ -46,5 +46,8 @@ script:
- CTEST_OUTPUT_ON_FAILURE=1 make test
- cd Meta/Lagom
- ./test-js
# These feel like they should go into a script. However, that would be a Travis-specific script, and this is *the* right place for travis-specific stuff.
- cd "$SERENITY_ROOT"/Toolchain/Cache
- du -ch * || true
- du -sch /home/travis/.ccache/* || true
- du -sch /var/cache/apt/archives/*.deb || true