2013-12-05 11:36:48 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -n "$TRAVIS" ]; then
|
|
|
|
|
|
|
|
echo 'Travis config not yet written'
|
2013-12-06 02:08:32 +04:00
|
|
|
sudo cp -Rp $TRAVIS_BUILD_DIR/tests/resources /resources
|
|
|
|
sudo /bin/bash /resources/Scripts/Provision.sh
|
2013-12-06 03:29:04 +04:00
|
|
|
sudo /bin/bash /resources/Scripts/SSL.sh
|
2013-12-05 11:36:48 +04:00
|
|
|
|
|
|
|
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
|