2013-12-05 11:36:48 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -n "$TRAVIS" ]; then
|
|
|
|
|
|
|
|
echo 'Travis config not yet written'
|
2013-12-06 02:06:51 +04:00
|
|
|
cp -Rp $TRAVIS_BUILD_DIR/tests/resources /resources
|
2013-12-05 11:36:48 +04:00
|
|
|
/bin/bash /resources/Scripts/Provision.sh
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Since not in travis, lets load up a system with vagrant
|
|
|
|
|
2013-12-06 02:06:51 +04:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
2013-12-05 11:36:48 +04:00
|
|
|
cd $DIR/vagrant
|
|
|
|
|
|
|
|
VAGRANTSTATUS=$(vagrant status)
|
|
|
|
|
|
|
|
# If vagrant is running already, reprovision it so it has fresh email boxes.
|
|
|
|
if echo "$VAGRANTSTATUS" | egrep -q "running" ; then
|
|
|
|
vagrant provision
|
|
|
|
else
|
|
|
|
vagrant up --provision
|
|
|
|
fi
|
|
|
|
cd $DIR
|
|
|
|
|
|
|
|
fi
|