Travis: fix deploy conditions for homebrew autobrew

This commit is contained in:
James R. Barlow
2017-05-31 02:29:32 -07:00
parent 12bfe20385
commit a88fa83515
+2 -2
View File
@@ -84,11 +84,11 @@ deploy:
script: /usr/bin/true
on:
branch: master
tags: false
tags: true
condition: $TRAVIS_OS_NAME == "osx"
after_deploy: |
if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_BRANCH" == "master" ]]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash .travis/osx_brew.sh
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://registry.hub.docker.com/u/jbarlow83/ocrmypdf/trigger/$DOCKERHUB_OCRMYPDF_TOKEN/