ci: Split up build&test Gitlab CI stages

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 b7c1bd5124
commit 2067a08465
  1. 22
      ci/.gitlab-ci.yml

@ -7,15 +7,16 @@ cache:
variables:
DOCKER_DRIVER: overlay2
RENDER_DEVICE: /dev/dri/renderD128
stages:
- build_and_test
- build
- test
build_and_test:
stage: build_and_test
build docker image:
stage: build
services:
- docker:dind
before_script:
- mkdir -p ccache
- mkdir -p results
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
@ -30,6 +31,19 @@ build_and_test:
- time docker push $CI_REGISTRY_IMAGE:latest
artifacts:
when: always
paths:
- results/
test:
stage: test
services:
- docker:dind
before_script:
- mkdir -p ccache
- mkdir -p results
script:
- echo core > /proc/sys/kernel/core_pattern
- echo 0 > /proc/sys/kernel/core_uses_pid
- if test -e $RENDER_DEVICE; then RD_CONFIG="--device=$RENDER_DEVICE -e RENDER_DEVICE=$RENDER_DEVICE"; fi

Loading…
Cancel
Save