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

```

parent c654c777
No related branches found
No related tags found
No related merge requests found
Pipeline #624 failed with stage
in 28 seconds
deploy_example:
stage: deploy
tags:
- vagrant
- develop19216822423
check_validity:
stage: test
script:
- vagrant box remove henrietta/example || true
- vagrant box add henrietta/example file:///var/www/html/dev/vagrant/example.box
build_example:
stage: build
tags:
- vagrant
- develop19216822423
before_script:
- cp *.sh example/
- cp SkeletonVagrantfile example/Vagrantfile
- cd example
- python make.py newbox test
- cd test
- python ../make.py meta
script:
- grep "1.0" metadata.json
- grep "example" metadata.json
- vagrant up
- vagrant package --out example.box
- mv -f example.box /var/www/html/dev/vagrant/example.box
- cd ..
after_script:
- vagrant destroy -f
- cd ..
......@@ -11,6 +11,13 @@ This section will be automatically replaced by `python make.py` with auto-genera
content of Vagrantfile that will refer to this box
---
Usage in Vagrantfile:
```
config.vm.box = "henrietta/example"
config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/example.box"
``
---
Usage in Vagrantfile:
```
config.vm.box = "henrietta/example"
......
......@@ -42,7 +42,7 @@ def writefile(content, path, prefix=None):
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) and (dir not in ('.git', 'example'))]
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')]
......
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