From 5e11fb3595e752e37557e3e1a1a0590e033daad3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Jun 2018 01:07:26 +0300 Subject: Fix stats site compilation. Also add build date/time into commit version file. --- tools/ci/branches/ci_site/.gitlab-ci.yml | 11 +++++++++++ tools/ci/jobs/pages.sh | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/ci/branches/ci_site/.gitlab-ci.yml b/tools/ci/branches/ci_site/.gitlab-ci.yml index b422f9587..fa4ca6523 100644 --- a/tools/ci/branches/ci_site/.gitlab-ci.yml +++ b/tools/ci/branches/ci_site/.gitlab-ci.yml @@ -2,6 +2,17 @@ stages: - build - stats +# with :; prevent from run it on windows +before_script: + - ":; uname -a" + - ":; cat /etc/os-release" + - ":; pwd" + - ":; cat /proc/sys/kernel/core_pattern" + - ":; mkdir logs || true" + - ":; ${UPDATEREPOS}" + - ":; ${DOCKERRETRY} ${PMUPDATE} >logs/apt.log" + - ":; ${DOCKERRETRY} ${PMINSTALL} ${PACKAGES} >>logs/apt.log" + .job-push: &job-push artifacts: paths: diff --git a/tools/ci/jobs/pages.sh b/tools/ci/jobs/pages.sh index b710483b3..720a3f917 100755 --- a/tools/ci/jobs/pages.sh +++ b/tools/ci/jobs/pages.sh @@ -13,7 +13,8 @@ mkdir -p ../public/version cp ./logs/gcc-?.* ../public/gcov || exit 1 cp ./logs/gcc-?_SDL2.* ../public/gcov || exit 1 -echo "Url: $CI_PROJECT_URL" >../public/version/commit.txt +echo date >../public/version/commit.txt +echo "Url: $CI_PROJECT_URL" >>../public/version/commit.txt echo "Ref name: $CI_BUILD_REF_NAME" >>../public/version/commit.txt echo "Ref: $CI_BUILD_REF" >>../public/version/commit.txt -- cgit v1.2.3-70-g09d2