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

build test

parent 8edec6ee
No related branches found
No related tags found
No related merge requests found
Pipeline #592 failed with stage
in 11 seconds
...@@ -16,6 +16,15 @@ Click on particular boxes to see description and how to use: ...@@ -16,6 +16,15 @@ Click on particular boxes to see description and how to use:
* [NodeJS 4.x + bower + gulp](/nodejs4) * [NodeJS 4.x + bower + gulp](/nodejs4)
* [NodeJS 5.x + JDK + ADT + cordova](/nodejs5_jdk_adk25) * [NodeJS 5.x + JDK + ADT + cordova](/nodejs5_jdk_adk25)
# How to rebuild
```bash
python make.py
git add --all
git commit -m "dfdf"
git push origin master
```
Boxes are automatically regenerated upon a push to master. 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 If you want to develop a single box, just make a branch that starts with it's name
and a dash, eg. **cassandra-something**. and a dash, eg. **cassandra-something**.
......
{ {
"description": "", "description": "Debian Jessie x86_64 with Cassandra 3.0.9",
"short_description": "Debian + Cassandra", "short_description": "Debian Jessie x86_64 with Cassandra 3.0.9",
"name": "henrietta/cassandra", "name": "henrietta/cassandra",
"versions": [{ "versions": [{
"version": "1", "version": "1",
"status": "active", "status": "active",
"description_html": "<p>Debian + Cassandrat</p>", "description_html": "<p>Debian Jessie x86_64 with Cassandra 3.0.9</p>",
"description_markdown": "Debian + Cassandra", "description_markdown": "Debian Jessie x86_64 with Cassandra 3.0.9",
"providers": [{ "providers": [{
"name": "virtualbox", "name": "virtualbox",
"url": "http://dev.dms-serwis.com.pl/vagrant/cassandra.box" "url": "http://dev.dms-serwis.com.pl/vagrant/cassandra.box"
}] }]
}] }]
} }
\ No newline at end of file
...@@ -3,16 +3,19 @@ ...@@ -3,16 +3,19 @@
from __future__ import print_function, absolute_import, division from __future__ import print_function, absolute_import, division
import os import os
import os.path import os.path
import sys
if __name__ == '__main__': if __name__ == '__main__':
dirs = [dir for dir in os.listdir('.') if os.path.isdir(dir) or (dir != '.git')] dirs = [dir for dir in os.listdir('.') if os.path.isdir(dir) or (dir != '.git')]
exi = lambda box, sup: os.path.exists(os.path.join(box, 'build%s.sh' % (sup, ))) exi = lambda box, sup: os.path.exists(os.path.join(box, 'build%s.sh' % (sup, )))
boxes = [box for box in dirs if exi(box, '') or exi(box, '_as_vagrant')] boxes = [box for box in dirs if exi(box, '') or exi(box, '_as_vagrant')]
# Generate Gitlab CI file if len(sys.argv) == 1:
with open('.gitlab-ci.yml', 'wb') as ci:
for box in boxes: # Generate Gitlab CI file
ci.write(b''' with open('.gitlab-ci.yml', 'wb') as ci:
for box in boxes:
ci.write(b'''
build_$BOX: build_$BOX:
only: only:
- master - master
...@@ -38,13 +41,13 @@ build_$BOX: ...@@ -38,13 +41,13 @@ build_$BOX:
- cd .. - cd ..
'''.replace('$BOX', box).replace('$PREFIX', 'henrietta/')) '''.replace('$BOX', box).replace('$PREFIX', 'henrietta/'))
# Generate metadata if sys.argv[1] == 'meta':
for box in boxes:
with open(os.path.join(box, 'DESCRIPTION'), 'rb') as mdin:
with open('DESCRIPTION', 'rb') as mdin, open('metadata.json', 'wb') as mdout:
description = mdin.read().strip() description = mdin.read().strip()
with open(os.path.join(box, 'metadata.json'), 'wb') as mdout: mdout.write('''{
mdout.write('''{
"description": "%s", "description": "%s",
"short_description": "%s", "short_description": "%s",
"name": "henrietta/%s", "name": "henrietta/%s",
......
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