Skip to content

Commit caee0c4

Browse files
committed
Determine project root on Travis-CI in the proper way.
1 parent fe619ce commit caee0c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/deploy.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/bin/bash -e
22

3-
PROJECT_ROOT=/vagrant
3+
if [ -z "$TRAVIS_BUILD_DIR"]
4+
then
5+
PROJECT_ROOT=$TRAVIS_BUILD_DIR
6+
else
7+
PROJECT_ROOT=/vagrant
8+
fi
49

510
# Create tramp user.
611

0 commit comments

Comments
 (0)