summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-09 23:29:28 +0200
committerlouiz’ <louiz@louiz.org>2017-04-10 00:18:29 +0200
commit451f28f5c41d692fad5ec04da2907691e2a5fab8 (patch)
treefd73af4ea41b64db38a5d65c0d6fa9e6400cb7fa
parent68d6b829402592d2d7a00e6e7b5013077aaa745c (diff)
downloadbiboumi-451f28f5c41d692fad5ec04da2907691e2a5fab8.tar.gz
biboumi-451f28f5c41d692fad5ec04da2907691e2a5fab8.tar.bz2
biboumi-451f28f5c41d692fad5ec04da2907691e2a5fab8.tar.xz
biboumi-451f28f5c41d692fad5ec04da2907691e2a5fab8.zip
Change the dates of source files before each build, to avoid useless rebuild
-rw-r--r--.gitlab-ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index afe2393..807e8ba 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,11 @@ before_script:
- whoami
- mkdir -p build/
- cd build/
+ # When we extract the artifacts from a previous build, the timestamp of all target are identicall to
+ # the timestamps of the generated source files (like biboumi.h, etc), so Makefile thinks the targets
+ # are not up to date, and everything is rebuilt. We change the modification time of all these files
+ # to be 15 minutes older, to avoid any unnecessary building.
+ - find . \( -name \*.hpp -or -name \*.h -or -name \*.cpp \) -exec touch -r {} -d '-15 minute' {} \;
variables:
COMPILER: "g++"