{"action":"created","comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/comments/56315434","id":56315434,"diff_hunk":"@@ -0,0 +1,30 @@\n+#!/bin/sh -eux\n+# Prepare and run a smoke test against the RabbitMQ OCF RA only if\n+# the scripts/rabbitmq-server-ha.ocf has changes\n+if ! git diff HEAD~ --name-only | grep -q scripts/rabbitmq-server-ha.ocf\n+then\n+  exit 0\n+fi\n+\n+export VAGRANT_VERSION=1.8.1\n+export DOCKER_IMAGE=bogdando/rabbitmq-cluster-ocf-wily\n+export UPLOAD_METHOD=none\n+export DOCKER_MOUNTS=\"$(pwd)/scripts/rabbitmq-server-ha.ocf:/tmp/rabbitmq-server-ha\"\n+\n+# Install vagrant and requirements\n+sudo apt-get install -qq git wget\n+wget --no-verbose https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_x86_64.deb\n+sudo dpkg -i --force-all ./vagrant_${VAGRANT_VERSION}_x86_64.deb\n+vagrant plugin install vagrant-triggers\n+\n+# Update docker and prepare images\n+sudo apt-get update","path":"scripts/travis_test_ocf_ra.sh","position":21,"original_position":21,"commit_id":"e35736537d4397750244de798a19c6674cf5841c","original_commit_id":"e35736537d4397750244de798a19c6674cf5841c","user":{"login":"dmitrymex","id":2473631,"avatar_url":"https://avatars.githubusercontent.com/u/2473631?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrymex","html_url":"https://github.com/dmitrymex","followers_url":"https://api.github.com/users/dmitrymex/followers","following_url":"https://api.github.com/users/dmitrymex/following{/other_user}","gists_url":"https://api.github.com/users/dmitrymex/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrymex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrymex/subscriptions","organizations_url":"https://api.github.com/users/dmitrymex/orgs","repos_url":"https://api.github.com/users/dmitrymex/repos","events_url":"https://api.github.com/users/dmitrymex/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrymex/received_events","type":"User","site_admin":false},"body":"It is a general advice I know to do update before any install. The reasoning is nicely outlined in that answer - http://askubuntu.com/a/147029","created_at":"2016-03-16T11:03:54Z","updated_at":"2016-03-16T11:03:54Z","html_url":"https://github.com/rabbitmq/rabbitmq-server/pull/689#discussion_r56315434","pull_request_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689","_links":{"self":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/comments/56315434"},"html":{"href":"https://github.com/rabbitmq/rabbitmq-server/pull/689#discussion_r56315434"},"pull_request":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689"}}},"pull_request":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689","id":62901191,"html_url":"https://github.com/rabbitmq/rabbitmq-server/pull/689","diff_url":"https://github.com/rabbitmq/rabbitmq-server/pull/689.diff","patch_url":"https://github.com/rabbitmq/rabbitmq-server/pull/689.patch","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/689","number":689,"state":"open","locked":false,"title":"Rabbit ocf ra travis","user":{"login":"bogdando","id":2795820,"avatar_url":"https://avatars.githubusercontent.com/u/2795820?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdando","html_url":"https://github.com/bogdando","followers_url":"https://api.github.com/users/bogdando/followers","following_url":"https://api.github.com/users/bogdando/following{/other_user}","gists_url":"https://api.github.com/users/bogdando/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdando/subscriptions","organizations_url":"https://api.github.com/users/bogdando/orgs","repos_url":"https://api.github.com/users/bogdando/repos","events_url":"https://api.github.com/users/bogdando/events{/privacy}","received_events_url":"https://api.github.com/users/bogdando/received_events","type":"User","site_admin":false},"body":"Add a Travis CI job for the rabbit OCF RA cluster bootstrap and smoke test.\r\nNOTE: it ignores changes to any files but the scripts/rabbitmq-server-ha.ocf\r\n","created_at":"2016-03-15T12:59:22Z","updated_at":"2016-03-16T11:03:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cd5504924f545cbb0241d991c8215169ddf84be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689/commits","review_comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689/comments","review_comment_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/689/comments","statuses_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/statuses/e35736537d4397750244de798a19c6674cf5841c","head":{"label":"bogdando:rabbit_ocf_ra_travis","ref":"rabbit_ocf_ra_travis","sha":"e35736537d4397750244de798a19c6674cf5841c","user":{"login":"bogdando","id":2795820,"avatar_url":"https://avatars.githubusercontent.com/u/2795820?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdando","html_url":"https://github.com/bogdando","followers_url":"https://api.github.com/users/bogdando/followers","following_url":"https://api.github.com/users/bogdando/following{/other_user}","gists_url":"https://api.github.com/users/bogdando/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdando/subscriptions","organizations_url":"https://api.github.com/users/bogdando/orgs","repos_url":"https://api.github.com/users/bogdando/repos","events_url":"https://api.github.com/users/bogdando/events{/privacy}","received_events_url":"https://api.github.com/users/bogdando/received_events","type":"User","site_admin":false},"repo":{"id":37133190,"name":"rabbitmq-server","full_name":"bogdando/rabbitmq-server","owner":{"login":"bogdando","id":2795820,"avatar_url":"https://avatars.githubusercontent.com/u/2795820?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdando","html_url":"https://github.com/bogdando","followers_url":"https://api.github.com/users/bogdando/followers","following_url":"https://api.github.com/users/bogdando/following{/other_user}","gists_url":"https://api.github.com/users/bogdando/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdando/subscriptions","organizations_url":"https://api.github.com/users/bogdando/orgs","repos_url":"https://api.github.com/users/bogdando/repos","events_url":"https://api.github.com/users/bogdando/events{/privacy}","received_events_url":"https://api.github.com/users/bogdando/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bogdando/rabbitmq-server","description":"RabbitMQ Server","fork":true,"url":"https://api.github.com/repos/bogdando/rabbitmq-server","forks_url":"https://api.github.com/repos/bogdando/rabbitmq-server/forks","keys_url":"https://api.github.com/repos/bogdando/rabbitmq-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bogdando/rabbitmq-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bogdando/rabbitmq-server/teams","hooks_url":"https://api.github.com/repos/bogdando/rabbitmq-server/hooks","issue_events_url":"https://api.github.com/repos/bogdando/rabbitmq-server/issues/events{/number}","events_url":"https://api.github.com/repos/bogdando/rabbitmq-server/events","assignees_url":"https://api.github.com/repos/bogdando/rabbitmq-server/assignees{/user}","branches_url":"https://api.github.com/repos/bogdando/rabbitmq-server/branches{/branch}","tags_url":"https://api.github.com/repos/bogdando/rabbitmq-server/tags","blobs_url":"https://api.github.com/repos/bogdando/rabbitmq-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bogdando/rabbitmq-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bogdando/rabbitmq-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/bogdando/rabbitmq-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bogdando/rabbitmq-server/statuses/{sha}","languages_url":"https://api.github.com/repos/bogdando/rabbitmq-server/languages","stargazers_url":"https://api.github.com/repos/bogdando/rabbitmq-server/stargazers","contributors_url":"https://api.github.com/repos/bogdando/rabbitmq-server/contributors","subscribers_url":"https://api.github.com/repos/bogdando/rabbitmq-server/subscribers","subscription_url":"https://api.github.com/repos/bogdando/rabbitmq-server/subscription","commits_url":"https://api.github.com/repos/bogdando/rabbitmq-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/bogdando/rabbitmq-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/bogdando/rabbitmq-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/bogdando/rabbitmq-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/bogdando/rabbitmq-server/contents/{+path}","compare_url":"https://api.github.com/repos/bogdando/rabbitmq-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bogdando/rabbitmq-server/merges","archive_url":"https://api.github.com/repos/bogdando/rabbitmq-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bogdando/rabbitmq-server/downloads","issues_url":"https://api.github.com/repos/bogdando/rabbitmq-server/issues{/number}","pulls_url":"https://api.github.com/repos/bogdando/rabbitmq-server/pulls{/number}","milestones_url":"https://api.github.com/repos/bogdando/rabbitmq-server/milestones{/number}","notifications_url":"https://api.github.com/repos/bogdando/rabbitmq-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bogdando/rabbitmq-server/labels{/name}","releases_url":"https://api.github.com/repos/bogdando/rabbitmq-server/releases{/id}","deployments_url":"https://api.github.com/repos/bogdando/rabbitmq-server/deployments","created_at":"2015-06-09T13:20:30Z","updated_at":"2016-03-11T14:39:11Z","pushed_at":"2016-03-15T15:04:15Z","git_url":"git://github.com/bogdando/rabbitmq-server.git","ssh_url":"git@github.com:bogdando/rabbitmq-server.git","clone_url":"https://github.com/bogdando/rabbitmq-server.git","svn_url":"https://github.com/bogdando/rabbitmq-server","homepage":"https://www.rabbitmq.com/","size":71900,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rabbitmq:stable","ref":"stable","sha":"9a02ab05715068740cb125123a271a8f705a6bde","user":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"repo":{"id":924551,"name":"rabbitmq-server","full_name":"rabbitmq/rabbitmq-server","owner":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rabbitmq/rabbitmq-server","description":"Open source multi-protocol messaging broker","fork":false,"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server","forks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/forks","keys_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/teams","hooks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/hooks","issue_events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/events{/number}","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/events","assignees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/assignees{/user}","branches_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/branches{/branch}","tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/tags","blobs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/statuses/{sha}","languages_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/languages","stargazers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/stargazers","contributors_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/contributors","subscribers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/subscribers","subscription_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/subscription","commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/contents/{+path}","compare_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/merges","archive_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/downloads","issues_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues{/number}","pulls_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls{/number}","milestones_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/milestones{/number}","notifications_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels{/name}","releases_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/releases{/id}","deployments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/deployments","created_at":"2010-09-20T10:29:16Z","updated_at":"2016-03-16T03:53:48Z","pushed_at":"2016-03-15T15:04:16Z","git_url":"git://github.com/rabbitmq/rabbitmq-server.git","ssh_url":"git@github.com:rabbitmq/rabbitmq-server.git","clone_url":"https://github.com/rabbitmq/rabbitmq-server.git","svn_url":"https://github.com/rabbitmq/rabbitmq-server","homepage":"https://www.rabbitmq.com/","size":109937,"stargazers_count":1510,"watchers_count":1510,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":359,"mirror_url":null,"open_issues_count":75,"forks":359,"open_issues":75,"watchers":1510,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689"},"html":{"href":"https://github.com/rabbitmq/rabbitmq-server/pull/689"},"issue":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/689"},"comments":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/689/comments"},"review_comments":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689/comments"},"review_comment":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/pulls/689/commits"},"statuses":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-server/statuses/e35736537d4397750244de798a19c6674cf5841c"}}}}