diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-18 07:55:14 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-18 07:55:14 +0400 |
commit | 7684002bac185c51e50bfd86ca787a4d41e1dc94 (patch) | |
tree | 7777deeb401ab5ef02f43add252a69cca59d7e55 | |
parent | 2e2212f02ee00de19bc3b64bc9b236f02a52a7f0 (diff) |
When initiating UI tests on travis, append commit message to submodule commit message.
-rwxr-xr-x | tests/travis/initiate_ui_tests.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/travis/initiate_ui_tests.sh b/tests/travis/initiate_ui_tests.sh index 76322d099f..e21e22ec48 100755 --- a/tests/travis/initiate_ui_tests.sh +++ b/tests/travis/initiate_ui_tests.sh @@ -13,6 +13,9 @@ fi git submodule update +git checkout "$TRAVIS_BRANCH" +COMMIT_MESSAGE=$(git log "$TRAVIS_COMMIT" -1 --pretty=%B) + cd tests/PHPUnit/UI git checkout master @@ -25,7 +28,7 @@ git config --global user.email "hello@piwik.org" git config --global user.name "Piwik Automation" git add ./piwik_commit.txt -git commit -m "Travis: Initiating build for commit '$TRAVIS_COMMIT'." +git commit -m "Travis: Initiating build for commit '$TRAVIS_COMMIT': $COMMIT_MESSAGE" git remote set-url origin "https://piwik-auto-commit-bot:$PIWIK_AUTOMATION@github.com/piwik/piwik-ui-tests.git" if ! git push origin master 2> /dev/null; then |