run script in bash and chmod the script before attempting to run it.

This commit is contained in:
Nick Minkler 2014-06-23 13:29:43 -07:00
parent f45e3c27c9
commit d1d03b5f95
2 changed files with 3 additions and 0 deletions

View File

@ -4,4 +4,5 @@ env:
global:
secure: lkC+9PeVPx0sFEAITPszoHvPV9jnavsJdA3Slo4FakzTB5AlERHszto4RdenAhPf347r8xKL120YvDxDeYvmffpG7NUcRXfQZxod1SRyFEFUUBC0zGHkLiJlBjAqkSEDacruldT4+1BCqRc/A96zj17knmUkvKnyutQtasOGKxk=
after_success:
- chmod +x .utility/do-publish.sh
- .utility/do-publish.sh

View File

@ -1,3 +1,5 @@
#!/bin/bash
if [ "$TRAVIS_REPO_SLUG" != "MilkBowl/VaultAPI"] || [ "$TRAVIS_PULL_REQUEST" == "true" ] || [ "$TRAVIS_BRANCH" != "master" ]
then
echo 'Travis can only publish docs for release builds.'