Skip to content

Commit

Permalink
Retooling travis config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed Jan 3, 2017
1 parent 87856db commit 8768a8f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ sudo: true
branches:
only:
- master
before_install:
- curl --silent https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz | tar xz -C /tmp/
- git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner
- "./etc/hatchet_travis_setup.sh"
before_install: bash etc/travis-setup.sh
install: true
script: eval "$TEST_CMD"
after_script: heroku keys:remove $USER@`hostname`
Expand Down
21 changes: 0 additions & 21 deletions etc/hatchet_travis_setup.sh

This file was deleted.

26 changes: 26 additions & 0 deletions etc/travis-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[ "$TRAVIS" != "true" ] && echo "Not running on Travis!" && exit 1

curl --silent https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz | tar xz -C /tmp/
git clone https://github.com/heroku/heroku-buildpack-testrunner.git /tmp/testrunner

git config --global user.email ${HEROKU_API_USER:-"buildpack@example.com"}
git config --global user.name 'BuildpackTester'

cat <<EOF >> ~/.ssh/config
Host heroku.com
StrictHostKeyChecking no
CheckHostIP no
UserKnownHostsFile=/dev/null
Host github.com
StrictHostKeyChecking no
EOF

cat <<EOF >> ~/.netrc
machine git.heroku.com
login ${HEROKU_API_USER:-"buildpack@example.com"}
password ${HEROKU_API_KEY:-"password"}
EOF

curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://toolbelt.heroku.com/install-ubuntu.sh | sh

yes | heroku keys:add

0 comments on commit 8768a8f

Please sign in to comment.