Skip to content

Commit

Permalink
Remove API-fetched deployment variables
Browse files Browse the repository at this point in the history
Thanks to @BanzaiMan’s travis-ci/travis-scheduler#38 and
travis-ci/travis-build#848, these are now present as
environment variables rather than needing to be fetched
via the GitHub API.
  • Loading branch information
backspace committed Sep 29, 2016
1 parent 3dc8ba3 commit 05b9a52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions config/deployment/deploy-pull-request.sh
@@ -1,5 +1,3 @@
./config/deployment/store-pull-request-data.sh
export TRAVIS_PULL_REQUEST_BRANCH=`jq -r '.head.ref' pull-request.json | tr '.' '-'`
ember deploy org-production-pull-request --activate --verbose
TRAVIS_PRO=true ember deploy com-production-pull-request --activate --verbose
./config/deployment/update-github-status.sh
1 change: 0 additions & 1 deletion config/deployment/store-pull-request-data.sh

This file was deleted.

5 changes: 2 additions & 3 deletions config/deployment/update-github-status.sh
@@ -1,9 +1,8 @@
export TRAVIS_PULL_REQUEST_COMMIT=`jq -r '.head.sha' pull-request.json`
curl -X POST \
--data "{\"state\": \"success\", \"target_url\": \"https://`echo $TRAVIS_PULL_REQUEST_BRANCH`.test-deployments.travis-ci.org\", \"description\": \"Visit a org-production deployment for this commit\", \"context\": \"deployments/org-production\"}" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/travis-ci/travis-web/statuses/$TRAVIS_PULL_REQUEST_COMMIT
https://api.github.com/repos/travis-ci/travis-web/statuses/$TRAVIS_PULL_REQUEST_SHA
curl -X POST \
--data "{\"state\": \"success\", \"target_url\": \"https://`echo $TRAVIS_PULL_REQUEST_BRANCH`.test-deployments.travis-ci.com\", \"description\": \"Visit a com-production deployment for this commit\", \"context\": \"deployments/com-production\"}" \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/travis-ci/travis-web/statuses/$TRAVIS_PULL_REQUEST_COMMIT
https://api.github.com/repos/travis-ci/travis-web/statuses/$TRAVIS_PULL_REQUEST_SHA

0 comments on commit 05b9a52

Please sign in to comment.