Skip to content
Snippets Groups Projects
Commit 3eb2ac14 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

build test

parent a8c7d162
No related branches found
No related tags found
No related merge requests found
Pipeline #588 failed with stage
in 24 seconds
......@@ -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
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment