summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-03-12 20:27:41 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-03-13 00:32:09 +0000
commitd2470474757562405982a7a56fd16516a80d84ea (patch)
treee1cb696f6a2a34dbb5a376a9d5b76af55b9cfaa0
parent42b814de22bca0b4692a3f4579ea8b6184ccd075 (diff)
downloadybd-d2470474757562405982a7a56fd16516a80d84ea.tar.gz
Add a .gitlab-ci.yml file
-rw-r--r--.gitlab-ci.yml22
-rw-r--r--install.sh14
-rw-r--r--scripts/Dockerfile2
3 files changed, 37 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b9c2d04
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+image: devcurmudgeon/foo
+
+before_script:
+- pip install fs
+- sh ./install.sh
+
+variables:
+ NO_BUILD: "True"
+ BASE: "/src"
+
+cache:
+ path: "$BASE"
+
+stages:
+- cache_keys
+- build
+- test
+- deploy
+
+check_cache_keys:
+ stage: cache_keys
+ script: "echo 'base: /src' > ./ybd.conf && ../ybd/ybd.py ci x86_64"
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..deff851
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,14 @@
+apt-get update
+apt-get install build-essential python-dev gawk git m4
+wget https://bootstrap.pypa.io/get-pip.py
+python get-pip.py
+pip install fs pyyaml requests jsonschema bottle cherrypy riemann-client
+pip install sandboxlib
+
+cd ..
+
+if [ ! -d definitions ] ; then
+ git clone http://git.baserock.org/git/baserock/baserock/definitions.git
+fi
+cd definitions
+
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
index 6daea22..757b523 100644
--- a/scripts/Dockerfile
+++ b/scripts/Dockerfile
@@ -10,4 +10,4 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && rm get-pip.py
# install python dependencies
-RUN pip install pyyaml sandboxlib requests jsonschema bottle cherrypy
+RUN pip install fs pyyaml sandboxlib requests jsonschema bottle cherrypy