Skip to content

Commit 86be669

Browse files
committed
ensure working directory is clean before building docs
1 parent 0c9928c commit 86be669

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/bin/build-docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ if [ ! -f sami.phar ]; then
55
curl -O http://get.sensiolabs.org/sami.phar
66
fi
77

8+
# Ensure the working directory is clean
9+
git reset --hard
10+
811
# Because Travis only clones a single branch, we only want to build everything on master.
912
if [ "$TRAVIS_BRANCH" == "master" ]; then
1013
php sami.phar update build/sami-config.php -v --force

0 commit comments

Comments
 (0)