Skip to content

Commit

Permalink
ci: Print ccache statistics summary
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Apr 10, 2020
1 parent a6eea71 commit 6d48066
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/test/06_script_a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
export LC_ALL=C.UTF-8

BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$DEPENDS_DIR/$HOST --bindir=$BASE_OUTDIR/bin --libdir=$BASE_OUTDIR/lib"
DOCKER_EXEC "command -v ccache > /dev/null && ccache --zero-stats"
if [ -z "$NO_DEPENDS" ]; then
DOCKER_EXEC ccache --max-size=$CCACHE_SIZE
fi
Expand Down Expand Up @@ -44,3 +45,7 @@ trap 'DOCKER_EXEC "cat ${BASE_SCRATCH_DIR}/sanitizer-output/* 2> /dev/null"' ERR
BEGIN_FOLD build
DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && DOCKER_EXEC make $GOAL V=1 ; false )
END_FOLD

BEGIN_FOLD ccache_stats
DOCKER_EXEC "command -v ccache > /dev/null && ccache --version | head -n 1 && ccache --show-stats"
END_FOLD

0 comments on commit 6d48066

Please sign in to comment.