Skip to content
Snippets Groups Projects
Commit 4b6cdbbe authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Implement eager branch cleanup on success.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent bed3e5ca
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ before_install:
- ./travis-install.sh
script:
- ./travis-test.sh
after_success:
- ./travis-cleanup.sh
notifications:
webhooks:
urls: https://sake-bot.herokuapp.com/
......
#!/bin/sh
# See travis/upload.sh for more documentation
git remote set-url --push origin git@github.com:haskell-pushbot/cabal-binaries.git
(umask 177 && cp id_rsa $HOME/.ssh/id_rsa)
ssh-keyscan github.com >> $HOME/.ssh/known_hosts
git push origin --delete "$(git rev-parse --abbrev-ref HEAD)"
......@@ -64,6 +64,8 @@ mkdir Cabal
mkdir cabal-install
cp -R $TRAVIS_BUILD_DIR/Cabal/tests Cabal
cp -R $TRAVIS_BUILD_DIR/cabal-install/tests cabal-install
# Copy in credentials so we can delete branch when done
cp $TRAVIS_BUILD_DIR/id_rsa .
# Install all of the necessary files for testing
cp $TRAVIS_BUILD_DIR/travis-install.sh .
cp $TRAVIS_BUILD_DIR/travis-common.sh .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment