Sha256: d34c446428ac91572a058515875237b43f63314c0bd84ca07a24ddf9725fdda5

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

#!/usr/bin/env bash

function cleanup {
    vagrant destroy --force
}

trap cleanup EXIT

GEM_PATH=$(ls vagrant-spec*.gem)

set -ex

if [ -f "${GEM_PATH}" ]
then
    mv "${GEM_PATH}" vagrant-spec.gem
fi

vagrant box update
vagrant box prune

guests=$(vagrant status | grep vmware | awk '{print $1}')

vagrant up --no-provision

declare -A pids

for guest in ${guests}
do
    vagrant provision ${guest} &
    pids[guest]=$!
    sleep 60
done

result=0
set +e

for guest in ${guests}
do
    wait ${pids[guest]}
    if [ $? -ne 0 ]
    then
        echo "Provision failure for: ${guest}"
        result=1
    fi
done

exit $result

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
vagrant-packet-0.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh
vagrant-packet-0.1.2 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh
vagrant-packet-0.1.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-04f7215b5e3f/test/vagrant-spec/.runner-vmware.sh