diff --git a/.travis.yml b/.travis.yml index c54a7773a..3e7f55b1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ after_success: # after_all - | - if [ "$TRAVIS_REPO_SLUG" = "hugovk/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then + if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then curl -Lo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py python travis_after_all.py export $(cat .to_export_back) @@ -85,7 +85,7 @@ after_success: after_failure: - | - if [ "$TRAVIS_REPO_SLUG" = "hugovk/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then + if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then curl -Lo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py python travis_after_all.py export $(cat .to_export_back) @@ -100,7 +100,7 @@ after_failure: after_script: - | - if [ "$TRAVIS_REPO_SLUG" = "hugovk/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then + if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ]; then echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS fi diff --git a/build_children.sh b/build_children.sh index ed8e15415..f30118f48 100755 --- a/build_children.sh +++ b/build_children.sh @@ -1,6 +1,7 @@ #!/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') +# Get last child project build number from branch named "latest" +BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/Pillow/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