diff --git a/.travis.yml b/.travis.yml index c9c958ebc5d..eb9a732cf82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,9 @@ language: python python: "2.6" node: "0.10" -install: - - scripts/travis/notifications.sh - - scripts/travis/install.sh +install: scripts/travis/install.sh before_script: scripts/travis/setup.sh script: scripts/travis/test.sh -after_success: scripts/travis/success.sh -after_failure: scripts/travis/failure.sh -after: scripts/travis/after.sh notifications: email: false diff --git a/scripts/travis/after.sh b/scripts/travis/after.sh deleted file mode 100755 index 2c39a339b21..00000000000 --- a/scripts/travis/after.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# pwd is the git repo. -set -e - -./irc "/quit" diff --git a/scripts/travis/failure.sh b/scripts/travis/failure.sh deleted file mode 100755 index 4192acc5faf..00000000000 --- a/scripts/travis/failure.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# pwd is the git repo. -set -e - -echo "Failure!" - -./irc "Travis #${TRAVIS_BUILD_NUMBER} FAILURE" diff --git a/scripts/travis/notifications.sh b/scripts/travis/notifications.sh deleted file mode 100755 index 5c44942ff2e..00000000000 --- a/scripts/travis/notifications.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash -# pwd is the git repo. -set -e -uname -a -date - -# This is ... lets not talk about how silly this is. -# IRC Notifications are started first, so that the notifications come promptly. -# -# This uses ii, a odd irc client that maps channels and servers to the -# filesystem. See http://tools.suckless.org/ii/ for more details. -# -# This uses a bunch of Travis environment variables, which are documented at -# http://about.travis-ci.org/docs/user/ci-environment/ - -# In case this script bails early, define a no-op irc script. -echo "#!/bin/bash" > ./irc -chmod +x ./irc -function _die() { - echo "No irc notifications" $@ - [ -f irc.mozilla.org/out ] && cat irc.mozilla.org/out - exit 0 -} - -# Don't notify for other repos. -if [ $TRAVIS_REPO_SLUG != "mozilla/kitsune" ]; then - _die "Wrong repo." -fi - -echo "Installing ii" -tar xzvf vendor/tarballs/ii-1.7.tar.gz -pushd ii-1.7 - make -popd - -echo "Starting ii irc client for notifications." -irc_nick="sumo_travis$(date +%N | cut -c1-3)" -ii-1.7/ii -s irc.mozilla.org -i . -n $irc_nick & - -for i in $(seq 0 30); do - echo -n "$i " - if [ $i -ge 30 ]; then - _die "Timeout." - fi - if [ ! -p irc.mozilla.org/in ]; then - sleep 1 - continue - fi - if grep "End of /MOTD" irc.mozilla.org/out; then - break - fi - if grep "Nickname is already in use."; then - # Oh well. - _die "Nick already in use." - fi - sleep 1 -done - -echo -ne "IRC: " -echo "/j #sumodev" | tee irc.mozilla.org/in - -while [ ! -p irc.mozilla.org/#sumodev/in ]; do - sleep 0.1 -done - -echo 'echo -ne "IRC: "' >> ./irc -echo 'echo "$@" | tee irc.mozilla.org/#sumodev/in' >> ./irc - -if [ $TRAVIS_PULL_REQUEST == 'false' ]; then - ./irc "Travis #${TRAVIS_BUILD_NUMBER} starting for ${TRAVIS_REPO_SLUG} branch ${TRAVIS_BRANCH} (${TRAVIS_COMMIT:0:8})" -else - ./irc "Travis #${TRAVIS_BUILD_NUMBER} starting for ${TRAVIS_REPO_SLUG} pull #${TRAVIS_PULL_REQUEST}" -fi -./irc "https://travis-ci.org/mozilla/kitsune/builds/${TRAVIS_BUILD_ID}" - -echo ----- -head -n 5 < irc.mozilla.org/out -echo ----- diff --git a/scripts/travis/success.sh b/scripts/travis/success.sh deleted file mode 100755 index 4f841c2a566..00000000000 --- a/scripts/travis/success.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# pwd is the git repo. -set -e - -echo "Success!" - -./irc "Travis #${TRAVIS_BUILD_NUMBER} SUCCESS"