summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre GRANDIN <grandinp@altern.org>2015-08-28 14:48:13 -0700
committerPierre GRANDIN <grandinp@altern.org>2015-08-28 14:48:13 -0700
commitc02599661e2f5b66499964a09eefeeff37252e5c (patch)
tree9004aed68f996826ea9d4fc5d06a9312089433f2
parent3bd575edb416a23bd0d7288f9eb44297ac26e624 (diff)
downloadnavit-c02599661e2f5b66499964a09eefeeff37252e5c.tar.gz
Autosubmit PR for i18n
-rw-r--r--ci/submit_i18n_pr.sh14
-rw-r--r--circle.yml9
2 files changed, 15 insertions, 8 deletions
diff --git a/ci/submit_i18n_pr.sh b/ci/submit_i18n_pr.sh
new file mode 100644
index 000000000..517740a7c
--- /dev/null
+++ b/ci/submit_i18n_pr.sh
@@ -0,0 +1,14 @@
+wget https://github.com/github/hub/releases/download/v2.2.1/hub-linux-amd64-2.2.1.tar.gz
+tar xvfz hub-linux-amd64-2.2.1.tar.gz
+sudo mv hub-linux-amd64-2.2.1/hub /usr/local/bin/
+sudo chmod +x /usr/local/bin/hub
+
+
+cat > ~/.config/hub << EOF
+github.com:
+- user: ${HUB_USER}
+ oauth_token: ${HUB_TOKEN}
+ protocol: https
+EOF
+
+hub pull-request -b trunk -m "Automatic translation import"
diff --git a/circle.yml b/circle.yml
index e51f766bb..0f557e94b 100644
--- a/circle.yml
+++ b/circle.yml
@@ -77,14 +77,7 @@ deployment:
branch: /i18n.*/
owner: navit-gps
commands:
- - git config --global user.email "circleci@navit-project.org"
- - git config --global user.name "CircleCI"
- - git checkout trunk
- - git pull origin trunk
- - cp $CIRCLE_ARTIFACTS/po/* po/
- - git add po/*.po.in
- - git commit -m "Automatic translation import from launchpad" po/*.po.in
- - git push
+ - bash ci/submit_i18n_pr.sh
notify:
webhooks:
- url: http://62.210.125.30:8000/