]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
run-make-check.sh: Adding ccache tuning for the CI
authorErwan Velu <erwan@redhat.com>
Wed, 4 Jul 2018 07:47:56 +0000 (09:47 +0200)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Mon, 19 Nov 2018 11:59:30 +0000 (12:59 +0100)
commitd5cfd03a06c397b7ccf78e695a9f3c240782b4d5
tree2972e7dfbf6236bafa62a06b8b5ee5965ccaaf79
parent4bfd25addd77b8ea785c8b84a073cff0c477e906
run-make-check.sh: Adding ccache tuning for the CI

When run-make-check is run by the CI, some tuning can be performed to
speedup the build.

This commit :
- Detect jenkins by searching JENKINS_HOME env variable
- Defines the SOURCE_DATE_EPOCH to enforce a stable date across builds
- Ask cmake not to use the git versioning which adds useless entropy for a temporary build (ENABLE_GIT_VERSION=OFF)
- Define the ccache slopiness to increase efficiency
- Increase the ccache size to save multiple builds to maximise cache hit between PRs
- Print ccache statistics to evaluate ccache efficiency

Signed-off-by: Erwan Velu <erwan@redhat.com>
(cherry picked from commit 4cb5a590537a9caaf61db42ce8ea123d2ab961f3)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
Conflicts:
run-make-check.sh: trivial
run-make-check.sh