Skip to content

Commit

Permalink
Added additional checks for the directory, plus a date output for tra…
Browse files Browse the repository at this point in the history
…cking builds
  • Loading branch information
tedivm committed Jan 20, 2014
1 parent 6afb4dc commit ea2f936
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SetupEnvironment.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh

# Tired of trying to decipher whether Travis is showing me cached logs or not.
date -u


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ -n "$TRAVIS" ]; then
Expand All @@ -10,6 +14,10 @@ if [ -n "$TRAVIS" ]; then
DIR="$( dirname $(find $TRAVIS_BUILD_DIR -name '.dovecottestingmark') )"
fi

if [ ! -d "$DIR" ]; then
DIR="$( dirname $(find $TRAVIS_BUILD_DIR -name 'SetupEnvironment.sh') )"
fi

sudo cp -Rp $DIR/resources /resources
sudo /bin/bash /resources/Scripts/Provision.sh
sudo /bin/bash /resources/Scripts/SSL.sh
Expand Down

0 comments on commit ea2f936

Please sign in to comment.