From 3eb2ac1445791d8ad6a0cb604d075e4cfc2aebad Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sat, 25 Mar 2017 11:29:49 +0100
Subject: [PATCH] build test

---
 README.md |  5 ++++-
 make.py   | 27 ++++++++++++---------------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/README.md b/README.md
index a992916..7c098f3 100644
--- a/README.md
+++ b/README.md
@@ -19,4 +19,7 @@ Click on particular boxes to see description and how to use:
 Boxes are automatically regenerated upon a push to master.
 If you want to develop a single box, just make a branch that starts with it's name
 and a dash, eg. **cassandra-something**.
-Only it will then rebuild upon commit.
\ No newline at end of file
+Only it will then rebuild upon commit.
+
+Boxes, after being built, will be automatically available at
+[http://dev.dms-serwis.com.pl/vagrant/](http://dev.dms-serwis.com.pl/vagrant/)
\ No newline at end of file
diff --git a/make.py b/make.py
index 6788791..e539e62 100644
--- a/make.py
+++ b/make.py
@@ -13,6 +13,17 @@ if __name__ == '__main__':
     with open('.gitlab-ci.yml', 'wb') as ci:
         ci.write(b'''
 .job_template: &box_build_job
+
+
+''')
+
+        for box in boxes:
+            ci.write(b'''
+build_%s:
+  <<: *box_build_job
+  only:
+    - master
+    - /^$BOX\-(.*)$/
   stage: build
   before_script:
     - python make.py
@@ -30,21 +41,7 @@ if __name__ == '__main__':
     - cd ..
   after_script:
     - vagrant destroy -f
-
-''')
-
-        for box in boxes:
-            ci.write(b'''
-build_%s:
-  <<: *box_build_job
-  variables:
-    BOX: "%s"
-    PREFIX: "henrietta/"
-  only:
-    - master
-    - /^%s\-(.*)$/
-''' % (box, box, box))
-
+'''.replace('$BOX', box).replace('$PREFIX', 'henrietta/'))
 
     # Generate metadata
     for box in boxes:
-- 
GitLab