xci: Move Vagrantfile to root directory 11/41611/2
authorMarkos Chandras <mchandras@suse.de>
Thu, 31 Aug 2017 17:46:07 +0000 (18:46 +0100)
committerMarkos Chandras <mchandras@suse.de>
Sat, 16 Sep 2017 09:30:55 +0000 (10:30 +0100)
We need access to the entire releng-xci directory so we can use the
OPNFV_RELENG_DEV_PATH variable to use modified files for testing
purposes so we move the Vagrantfile to the root directory.

Change-Id: I941b6f2efff479024ff580c3d58fcdcbadd9aa7f
Signed-off-by: Markos Chandras <mchandras@suse.de>
Vagrantfile [moved from xci/Vagrantfile with 94% similarity]

similarity index 94%
rename from xci/Vagrantfile
rename to Vagrantfile
index 908f5d5..78aa8d7 100644 (file)
@@ -44,8 +44,9 @@ Vagrant.configure(2) do |config|
           export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-2048}
           export VM_DOMAIN_TYPE=qemu
           export PATH=$PATH:$HOME/.local/bin
+          export OPNFV_RELENG_DEV_PATH=/vagrant
           [[ ! -e ${HOME}/.ssh/id_rsa ]] && ssh-keygen -q -P '' -f ${HOME}/.ssh/id_rsa
-          ./xci-deploy.sh
+          cd xci && ./xci-deploy.sh
       SHELL
       s.env = {
           "XCI_FLAVOR" => "#{ENV['XCI_FLAVOR']}",
@@ -78,8 +79,9 @@ Vagrant.configure(2) do |config|
           export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-2048}
           export VM_DOMAIN_TYPE=qemu
           export PATH=$PATH:$HOME/.local/bin
+          export OPNFV_RELENG_DEV_PATH=/vagrant
           [[ ! -e ${HOME}/.ssh/id_rsa ]] && ssh-keygen -q -P '' -f ${HOME}/.ssh/id_rsa
-          ./xci-deploy.sh
+          cd xci && ./xci-deploy.sh
       SHELL
       s.env = {
           "XCI_FLAVOR" => "#{ENV['XCI_FLAVOR']}",
@@ -110,8 +112,9 @@ Vagrant.configure(2) do |config|
         export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-2048}
         export VM_DOMAIN_TYPE=qemu
         export PATH=$PATH:$HOME/.local/bin
+        export OPNFV_RELENG_DEV_PATH=/vagrant
         [[ ! -e ${HOME}/.ssh/id_rsa ]] && ssh-keygen -q -P '' -f ${HOME}/.ssh/id_rsa
-        ./xci-deploy.sh
+        cd xci && ./xci-deploy.sh
       SHELL
     end
   end
@@ -136,8 +139,9 @@ Vagrant.configure(2) do |config|
         export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-2048}
         export VM_DOMAIN_TYPE=qemu
         export PATH=$PATH:$HOME/.local/bin
+        export OPNFV_RELENG_DEV_PATH=/vagrant
         [[ ! -e ${HOME}/.ssh/id_rsa ]] && ssh-keygen -q -P '' -f ${HOME}/.ssh/id_rsa
-        ./xci-deploy.sh
+        cd xci && ./xci-deploy.sh
       SHELL
     end
   end