Skip to content

Commit

Permalink
Add runtime sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Jul 21, 2016
1 parent 2676845 commit 383342a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
language: java
sudo: false

jdk:
- oraclejdk8

- oraclejdk8
script:
- mvn install -DskipTests=true
- mvn -pl !azure-batch,!azure-mgmt-website checkstyle:check
- mvn package javadoc:aggregate -DskipTests=true
- mvn install -DskipTests=true
- mvn -pl !azure-batch,!azure-mgmt-website checkstyle:check
- mvn package javadoc:aggregate -DskipTests=true
env:
global:
secure: bB/RoMrP+sMJBZB6G/s4tPhZUyY0DEEszKd1Vne4TTebHnfzeHQDABYWfcJNVeWujlGJmyi78bvyysm6lfhAnDtIQXss+P+ryN53QDZmU8zKmzZIiqRS8IAMEKRhy03/J62RBQX+F52iP3hUykSHlAxV0lmdWIVtVtp0au8Lu+XmptjXDtVzT87anr879Olyc8Ax2izR0EYZpten6CEYKktx6lUoSIWBTYvrUs1ouboK3X1PpKqdVvvt16rswK36zCt7j0b3DTl8F5kinP67dP42f+Kix2IWGtFjcQbXd7Wdd/d8Ouy9BTlsG5wQNk4ChjITYxGZf3p9DupPKlEe7sA+N9ZS2w4iTcNucI/mkRtDVawDqxmPwfbmqkt9KXHBODS1sTmsrSys870sW3bKwAauaUMpJJAkWYXuNXm8iUVGa5nE3u+YB410puRmbXa5c3QbzVrftohIKM/3RvpUDXjXVAJuiLktC0sHvQ3iRS/N07AjjTGdst1oB1zpf8hlgzJzJ8PrGad5/DHGH1WoWQSbJffDCrKf92U1eLVs02Y3RGKSJ+iiXTWsnOGsgy6RVZcKv7AJp3R+uCwVE0dLoSVjhJaIt4zXcUuwN4uUlAOVsIoaWZ6c5UINWHzjuy6IWM+mId4kFYqn8shoDvsgYAZsJctqbqdUtpQVoWCjmiw=
10 changes: 10 additions & 0 deletions tools/sync_runtimes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e # exit with nonzero exit code if anything fails

git config user.name "Travis CI"
git config user.email "[email protected]"

git subtree pull --squash --prefix runtimes [email protected]:Azure/autorest-clientruntime-for-java.git master --no-edit
git subtree push --prefix runtimes https://${GH_TOKEN}@github.com:Azure/autorest-clientruntime-for-java.git sdk_${TRAVIS_PULL_REQUEST}

curl -i -H "Authorization: token ${GH_TOKEN}" https://api.github.com/repos/Azure/autorest-clientruntime-for-java/pulls --data "{\"title\":\"SDK changes from pull request #${TRAVIS_PULL_REQUEST}\",\"head\":\"sdk_${TRAVIS_PULL_REQUEST}\",\"base\":\"master\",\"body\":\"#${TRAVIS_PULL_REQUEST}\"}"

0 comments on commit 383342a

Please sign in to comment.