After success, trigger a build at hugovk/pillow-wheels/latest

This commit is contained in:
hugovk 2015-01-04 10:16:20 +02:00
parent 2f1f73a768
commit 832c42da74
2 changed files with 13 additions and 0 deletions

View File

@ -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=

6
build_children.sh Executable file
View File

@ -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