Skip to content
Extraits de code Groupes Projets
Valider ef9a6844 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

not sure if this works but basically we want to trigger the ui tests on the...

not sure if this works but basically we want to trigger the ui tests on the correct branch of the ui test repo
parent d9616e47
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,8 +18,9 @@ COMMIT_MESSAGE=$(git log "$TRAVIS_COMMIT" -1 --pretty=%B) ...@@ -18,8 +18,9 @@ COMMIT_MESSAGE=$(git log "$TRAVIS_COMMIT" -1 --pretty=%B)
cd tests/PHPUnit/UI cd tests/PHPUnit/UI
git checkout master UI_BRANCH=`git rev-parse --abbrev-ref HEAD`
git pull --rebase origin master git checkout $UI_BRANCH
git pull --rebase origin $UI_BRANCH
echo "$TRAVIS_COMMIT echo "$TRAVIS_COMMIT
$TRAVIS_BRANCH" > piwik_commit.txt $TRAVIS_BRANCH" > piwik_commit.txt
...@@ -31,7 +32,7 @@ git add ./piwik_commit.txt ...@@ -31,7 +32,7 @@ git add ./piwik_commit.txt
git commit -m "Travis: Initiating build for commit '$TRAVIS_COMMIT' on branch '$TRAVIS_BRANCH': $COMMIT_MESSAGE" git commit -m "Travis: Initiating build for commit '$TRAVIS_COMMIT' on branch '$TRAVIS_BRANCH': $COMMIT_MESSAGE"
git remote set-url origin "https://piwik-auto-commit-bot:$PIWIK_AUTOMATION@github.com/piwik/piwik-ui-tests.git" 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 if ! git push origin $UI_BRANCH 2> /dev/null; then
echo "Failed to push!" echo "Failed to push!"
exit 1 exit 1
fi fi
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter