diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dac19321471d59786836e4f9a19e1f89eb233db5..04d15f59c4273c58aeacec1eb05947fb2182fec8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,31 @@ -check_validity: - stage: test + +deploy_wine: + stage: deploy + tags: + - vagrant + - develop19216822423 script: - - python make.py newbox test - - cd test + - vagrant box remove henrietta/wine || true + - vagrant box add henrietta/wine file:///var/www/html/dev/vagrant/wine.box +build_wine: + stage: build + tags: + - vagrant + - develop19216822423 + before_script: + - cp *.sh wine/ + - cp SkeletonVagrantfile wine/Vagrantfile + - cd wine - python ../make.py meta - - grep "1.0" metadata.json - - grep "test" metadata.json + script: + - cd $CI_PROJECT_DIR + - cd wine + - vagrant up + - vagrant package --out wine.box + - mv -f wine.box /var/www/html/dev/vagrant/wine.box + - cd .. + after_script: + - cd $CI_PROJECT_DIR + - cd wine + - vagrant destroy -f - cd ..