summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2020-07-23 17:31:04 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2020-08-11 08:11:09 +0000
commit63607cf7b7387862b1d59e4c75f7431849832ec4 (patch)
tree8a8577b332b86ba2b1f4b81d5c82232b5eb4b167 /.gitlab-ci
parent46e92ead4ca2878c289fb72a62865d16d916f82a (diff)
downloadbuildstream-63607cf7b7387862b1d59e4c75f7431849832ec4.tar.gz
Test buildstream with a reference cache server
This test defines a docker compose for a buildstream cache server and uses it. This stage could be altered or duplicated to use other cache servers so we can check our continued compatibility.
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/buildgrid-remote-execution.yml (renamed from .gitlab-ci/buildgrid-compose.yml)0
-rw-r--r--.gitlab-ci/cache-server.yml36
2 files changed, 36 insertions, 0 deletions
diff --git a/.gitlab-ci/buildgrid-compose.yml b/.gitlab-ci/buildgrid-remote-execution.yml
index fd45c45af..fd45c45af 100644
--- a/.gitlab-ci/buildgrid-compose.yml
+++ b/.gitlab-ci/buildgrid-remote-execution.yml
diff --git a/.gitlab-ci/cache-server.yml b/.gitlab-ci/cache-server.yml
new file mode 100644
index 000000000..24ccd1672
--- /dev/null
+++ b/.gitlab-ci/cache-server.yml
@@ -0,0 +1,36 @@
+##
+# A Builstream Artifact Server
+#
+# Spins-up a unnamed and unauthenticated grid:
+# - artifacts server at: http://localhost:50052
+#
+# BuildStream configuration snippet:
+#
+# artifacts:
+# url: http://localhost:50052
+# push: true
+#
+# Basic usage:
+# - docker-compose -f cache-server.yml up
+# - docker-compose -f cache-server.yml down
+#
+version: "3.2"
+
+services:
+ controller:
+ image: buildstream/buildstream:dev
+ command: ["bst-artifact-server","--port",
+ "50052",
+ "--enable-push",
+ "/artifacts"
+ ]
+ ports:
+ - 50052:50052
+ networks:
+ - grid
+networks:
+ grid:
+ driver: bridge
+
+volumes:
+ cache: