From 7a1317036b43528144b877f8aef377e6ebaa0527 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 11 Jul 2019 08:31:53 -0400 Subject: [PATCH 1/2] ci: clean ccache stats to see the real effect of ccaching Signed-off-by: Jean Privat --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70b91e1866..914a782e54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,7 @@ before_script: - git config --add github.oauthtoken "$GITHUB_OAUTHTOKEN" # needed for github api rate limit - pwd - ccache -s + - ccache -z - ccache -M 500M - du -sh .gradle || true - type -a nitc nitdoc || true # is there some nit tools? From a54cfd376e1ec2fd528a08fc934e6c1010aaeab9 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 12 Jul 2019 14:00:41 -0400 Subject: [PATCH 2/2] ci: do not error when nothing with nitunit_some Signed-off-by: Jean Privat --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 914a782e54..9e61e33a8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,6 +90,7 @@ nitunit_some: script: - git diff --name-only origin/master..HEAD -- "*.nit" "*.res" "README.*" | grep -v "^tests/" > list0.txt || true - xargs nitls -pP < list0.txt > list.txt + - test -s list.txt || exit 0 - xargs nitunit < list.txt - junit2html nitunit.xml artifacts: