From 26bc3b293c895843b4ebd946fdc312355c9cd4d6 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Fri, 23 Nov 2018 00:02:50 +0100 Subject: [PATCH] ci: Log CI run commands to artifacts Reviewed-by: Gurchetan Singh Signed-off-by: Robert Foss Signed-off-by: Jakob Bornecrantz --- ci/.gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/.gitlab-ci.yml b/ci/.gitlab-ci.yml index 8ade8bb..e119264 100644 --- a/ci/.gitlab-ci.yml +++ b/ci/.gitlab-ci.yml @@ -21,7 +21,11 @@ build_and_test: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - time docker pull $CI_REGISTRY_IMAGE:latest || true - - time docker build -t $CI_REGISTRY_IMAGE --cache-from $CI_REGISTRY_IMAGE:latest ci + - time docker build + -t $CI_REGISTRY_IMAGE + --cache-from $CI_REGISTRY_IMAGE:latest ci + 2>&1 | tee results/docker_build_log.txt + - docker history $CI_REGISTRY_IMAGE:latest - time docker push $CI_REGISTRY_IMAGE:latest @@ -35,7 +39,8 @@ build_and_test: $RD_CONFIG -v $PWD:/virglrenderer $CI_REGISTRY_IMAGE:latest - /virglrenderer/ci/run-tests.sh 2>&1 | tee results/log.txt + /virglrenderer/ci/run-tests.sh + 2>&1 | tee results/docker_test_log.txt artifacts: when: always