From 6854417f53dae952433487a084665b4805d6ddc6 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Thu, 6 Apr 2017 20:00:11 +0200
Subject: [PATCH] roll

---
 .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++------
 1 file changed, 28 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dac1932..04d15f5 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 ..
-- 
GitLab