summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaz Canabrava <tcanabrava@kde.org>2020-07-14 16:29:06 +0200
committerTomaz Canabrava <tcanabrava@kde.org>2020-07-14 16:29:06 +0200
commit67e88e3fbc0000c502c93ac6462000c23363b43e (patch)
treed182ee3a242ce6247fd7313e3e563afaf4080a7e
parent3b3ee1b6893bd8ee55d907e919a6a971d96861b4 (diff)
downloadbuildstream-67e88e3fbc0000c502c93ac6462000c23363b43e.tar.gz
Add base for the Test entry for the Cache Server
This is mostly a copy paste from the code above that defines a test server for the remote execution, adapted for the cache-server.
-rw-r--r--.gitlab-ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a5f2245c9..62f35c6c5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -208,6 +208,31 @@ tests-remote-execution:
SOURCE_CACHE_SERVICE: http://docker:50052
PYTEST_ARGS: "--color=yes --remote-execution"
+tests-cache-server:
+ allow_failure: true
+ image: TODO-Add-The-Image-Here # IMAGE HERE
+ <<: *tests
+
+ before_script:
+ - dnf install -y docker docker-compose
+ - docker-compose --file ${COMPOSE_MANIFEST} up --detach
+
+ after_script:
+ - docker-compose --file ${COMPOSE_MANIFEST} stop
+ - docker-compose --file ${COMPOSE_MANIFEST} logs
+ - docker-compose --file ${COMPOSE_MANIFEST} down
+
+ services:
+ - docker:stable-dind
+
+ variables:
+ DOCKER_HOST: tcp://docker:2375
+ DOCKER_DRIVER: overlay2
+ DOCKER_TLS_CERTDIR: ""
+ COMPOSE_MANIFEST: .gitlab-ci/buildgrid-cache-server.yml
+ ARTIFACT_CACHE_SERVICE: http://docker:50052
+ PYTEST_ARGS: "--color=yes --remote-execution"
+
tests-no-usedevelop:
# Ensure that tests also pass without `--develop` flag.
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-${DOCKER_IMAGE_VERSION}