From 398b0829b264877f0dd487086903e7bf2dff40c9 Mon Sep 17 00:00:00 2001 From: Emanuel Greucean Date: Fri, 18 Jul 2014 15:25:22 -0700 Subject: [PATCH] Added some experimental after_success commands that attempts to update the kala-travis/hotsauce-drops-7 fork --- .travis.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index caf0dd7..c37730e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,10 @@ mysql: encoding: utf8 env: - - UPGRADE=7.x-1.x-dev + matrix: + - UPGRADE=7.x-1.x-dev + global: + secure: Jc9tSi/yf5qy1Bz0NipXxixXFYMgksorzHReDLGoeSRGG/5aCO2Py1/SQko6Y6YzR0fvuByWXFM8T8Ob0+soeC26CnLygARm50h4Px5vv9iW0RUd0jkmMqMz67fIrAOptfp1lbHe2m9Xe91XhBDTcF6HhdXXKc71y5WsRAawoPA= matrix: fast_finish: true @@ -85,6 +88,9 @@ install: - echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini before_script: + # Configure GIT + - git config --global user.email "travis@kalamuna.com" + - git config --global user.name "Travis-CI" # Do the site install - cd drupal @@ -102,6 +108,16 @@ after_script: # Stop the webserver so that it's not still running when MySQL is stopped. - kill $SERVER_PID +after_success: + - git config credential.helper "store --file=.git/credentials" + - echo "https://${GH_TOKEN}:@github.com" > .git/credentials + - git clone https://github.com/kala-travis/hotsauce-drops-7.git hotdrops + - cp -fR drupal hotdrops + - cd hotdrops + - git add . + - git commit -m "Successful build" + - git push + notifications: email: recipients: @@ -112,4 +128,4 @@ notifications: channels: - "chat.freenode.net#hotsauce" on_success: always - on_failure: always \ No newline at end of file + on_failure: always