mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 19:26:01 +03:00
28 lines
651 B
Bash
Executable File
28 lines
651 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -n "$TRAVIS" ]; then
|
|
|
|
echo 'Travis config not yet written'
|
|
sudo cp -Rp $TRAVIS_BUILD_DIR/tests/resources /resources
|
|
sudo /bin/bash /resources/Scripts/Provision.sh
|
|
sudo /bin/bash /resources/Scripts/SSL.sh
|
|
|
|
else
|
|
|
|
# Since not in travis, lets load up a system with vagrant
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
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 |