ci: Log CI run commands to artifacts

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Robert Foss 6 years ago committed by Jakob Bornecrantz
parent 9f46c37b0d
commit 26bc3b293c
  1. 9
      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

Loading…
Cancel
Save