|
|
|
|
@ -4,19 +4,21 @@
|
|
|
|
|
IFS=/ read -a DELIMITED_SLUG <<< "$TRAVIS_REPO_SLUG" |
|
|
|
|
export CURRENT_REPO=${DELIMITED_SLUG[1]} |
|
|
|
|
|
|
|
|
|
git config user.name --global islandora-logger |
|
|
|
|
git config user.email --global noreply@islandora.ca |
|
|
|
|
git config --global user.name islandora-logger |
|
|
|
|
git config --global user.email noreply@islandora.ca |
|
|
|
|
|
|
|
|
|
# Git business |
|
|
|
|
export VERBOSE_DIR = $HOME/sites/default/files/simpletest/verbose |
|
|
|
|
cd $HOME |
|
|
|
|
git clone https://islandora-logger:$LOGGER_PW@github.com/Islandora/islandora_travis_logs.git |
|
|
|
|
cd $HOME/drupal-* |
|
|
|
|
export VERBOSE_DIR=`pwd`/sites/default/files/simpletest/verbose |
|
|
|
|
git clone -b $CURRENT_REPO https://github.com/Islandora/islandora_travis_logs.git |
|
|
|
|
cd islandora_travis_logs |
|
|
|
|
git checkout -B $CURRENT_REPO |
|
|
|
|
|
|
|
|
|
# Out with the old, in with the new |
|
|
|
|
git rm $HOME/islandora_travis_logs/*.* |
|
|
|
|
cp $VERBOSE_DIR/*.* $HOME/islandora_travis_logs |
|
|
|
|
rm -rf ./* |
|
|
|
|
cp $VERBOSE_DIR/* ./ |
|
|
|
|
cp $HOME/islandora_tomcat/logs/* ./ |
|
|
|
|
cp /tmp/drush_webserver.log ./ |
|
|
|
|
git add -A |
|
|
|
|
git commit -m "Job: $TRAVIS_JOB_NUMBER Commit: $TRAVIS_COMMIT" |
|
|
|
|
git push origin $CURRENT_REPO |
|
|
|
|
git push origin $CURRENT_REPO --quiet |
|
|
|
|
|