diff --git a/.travis.yml b/.travis.yml index 0b6263480..670feb158 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,8 @@ after_success: - pyflakes PIL/*.py | tee >(wc -l) - pyflakes Tests/*.py | tee >(wc -l) + # Trigger an OS X build at the pillow-wheels repo + - ./build_children.sh # Coverage and quality reports on just the latest diff. # (Installation is very slow on Py3, so just do it for Py2.) @@ -69,3 +71,8 @@ after_success: - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover-run.sh; fi matrix: fast_finish: true + +env: + global: + # travis encrypt AUTH_TOKEN= + secure: yC1RcYF932ICXcw8hR3MHKfw9G9030+w8SgGXhhH2htgsCvKrGtb7kA4pqN7eGS31QsGatj6NmYVOdut3jIqbtP+5Pd3xceGoeo3HMWfS5RPmgbrGmiVYeDH9ZZDDZMH85oRnMU/vfI3T8SdYdyYM3hXAPzXeU6jWxQA48ft4D4= diff --git a/build_children.sh b/build_children.sh new file mode 100755 index 000000000..ed8e15415 --- /dev/null +++ b/build_children.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Get last child project build number +BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/hugovk/pillow-wheels/branches/latest' | grep -o '^{"branch":{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n') +# Restart last child project build +curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM/restart --header "Authorization: token "$AUTH_TOKEN