{"action":"created","comment":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/39738481","id":39738481,"diff_hunk":"@@ -1,11 +1,48 @@\n #!/bin/bash\n-echo \"extension = mongo.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini\n \n-if [ -f $SYLIUS_CACHE_DIR/composer-mongodb.lock ]; then\n-    cp $SYLIUS_CACHE_DIR/composer-mongodb.lock composer.lock\n-else\n+function main\n+{\n+    echo \"extension = mongo.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini\n+\n+    if is_cache_fresh; then\n+        restore_composer_lock_from_cache\n+    else\n+        install_mongodb\n+        store_composer_lock_in_cache\n+    fi\n+}\n+\n+function install_mongodb\n+{\n     composer require doctrine/mongodb-odm=\"1.0.*@dev\" --no-update","path":"travis/prepare/prepare-mongodb","position":null,"original_position":21,"commit_id":"270c1d879111cfbfb2780e439ba1e165f2976494","original_commit_id":"60ea8ee74f35376ec548539a9b1c81a6a61df740","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"body":"Already changed to `^1.0.2`.","created_at":"2015-09-17T12:18:48Z","updated_at":"2015-09-17T12:18:48Z","html_url":"https://github.com/Sylius/Sylius/pull/3287#discussion_r39738481","pull_request_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3287","_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments/39738481"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3287#discussion_r39738481"},"pull_request":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3287"}}},"pull_request":{"url":"https://api.github.com/repos/Sylius/Sylius/pulls/3287","id":45281451,"html_url":"https://github.com/Sylius/Sylius/pull/3287","diff_url":"https://github.com/Sylius/Sylius/pull/3287.diff","patch_url":"https://github.com/Sylius/Sylius/pull/3287.patch","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/3287","number":3287,"state":"open","locked":false,"title":"[Travis] Added automatic way to invalidate MongoDB-based composer.lock cache","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| License       | MIT","created_at":"2015-09-17T11:55:33Z","updated_at":"2015-09-17T12:18:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d74e924947e11136044eb70410e44e3d2c107b52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3287/commits","review_comments_url":"https://api.github.com/repos/Sylius/Sylius/pulls/3287/comments","review_comment_url":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3287/comments","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/270c1d879111cfbfb2780e439ba1e165f2976494","head":{"label":"pamil:travis-on-more-steroids","ref":"travis-on-more-steroids","sha":"270c1d879111cfbfb2780e439ba1e165f2976494","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"repo":{"id":33619140,"name":"Sylius","full_name":"pamil/Sylius","owner":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pamil/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/pamil/Sylius","forks_url":"https://api.github.com/repos/pamil/Sylius/forks","keys_url":"https://api.github.com/repos/pamil/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pamil/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pamil/Sylius/teams","hooks_url":"https://api.github.com/repos/pamil/Sylius/hooks","issue_events_url":"https://api.github.com/repos/pamil/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/pamil/Sylius/events","assignees_url":"https://api.github.com/repos/pamil/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/pamil/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/pamil/Sylius/tags","blobs_url":"https://api.github.com/repos/pamil/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pamil/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pamil/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/pamil/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pamil/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/pamil/Sylius/languages","stargazers_url":"https://api.github.com/repos/pamil/Sylius/stargazers","contributors_url":"https://api.github.com/repos/pamil/Sylius/contributors","subscribers_url":"https://api.github.com/repos/pamil/Sylius/subscribers","subscription_url":"https://api.github.com/repos/pamil/Sylius/subscription","commits_url":"https://api.github.com/repos/pamil/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/pamil/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/pamil/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/pamil/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/pamil/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/pamil/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pamil/Sylius/merges","archive_url":"https://api.github.com/repos/pamil/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pamil/Sylius/downloads","issues_url":"https://api.github.com/repos/pamil/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/pamil/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/pamil/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/pamil/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pamil/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/pamil/Sylius/releases{/id}","created_at":"2015-04-08T16:39:30Z","updated_at":"2015-04-08T16:39:36Z","pushed_at":"2015-09-17T12:18:11Z","git_url":"git://github.com/pamil/Sylius.git","ssh_url":"git@github.com:pamil/Sylius.git","clone_url":"https://github.com/pamil/Sylius.git","svn_url":"https://github.com/pamil/Sylius","homepage":"Sylius.org","size":19595,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Sylius:master","ref":"master","sha":"1723d4251294f327753406ce6d61b63d8fb55e6b","user":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"repo":{"id":2717549,"name":"Sylius","full_name":"Sylius/Sylius","owner":{"login":"Sylius","id":719423,"avatar_url":"https://avatars.githubusercontent.com/u/719423?v=3","gravatar_id":"","url":"https://api.github.com/users/Sylius","html_url":"https://github.com/Sylius","followers_url":"https://api.github.com/users/Sylius/followers","following_url":"https://api.github.com/users/Sylius/following{/other_user}","gists_url":"https://api.github.com/users/Sylius/gists{/gist_id}","starred_url":"https://api.github.com/users/Sylius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sylius/subscriptions","organizations_url":"https://api.github.com/users/Sylius/orgs","repos_url":"https://api.github.com/users/Sylius/repos","events_url":"https://api.github.com/users/Sylius/events{/privacy}","received_events_url":"https://api.github.com/users/Sylius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sylius/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":false,"url":"https://api.github.com/repos/Sylius/Sylius","forks_url":"https://api.github.com/repos/Sylius/Sylius/forks","keys_url":"https://api.github.com/repos/Sylius/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sylius/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sylius/Sylius/teams","hooks_url":"https://api.github.com/repos/Sylius/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Sylius/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Sylius/Sylius/events","assignees_url":"https://api.github.com/repos/Sylius/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Sylius/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Sylius/Sylius/tags","blobs_url":"https://api.github.com/repos/Sylius/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sylius/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sylius/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sylius/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sylius/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Sylius/Sylius/languages","stargazers_url":"https://api.github.com/repos/Sylius/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Sylius/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Sylius/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Sylius/Sylius/subscription","commits_url":"https://api.github.com/repos/Sylius/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sylius/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sylius/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sylius/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sylius/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Sylius/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sylius/Sylius/merges","archive_url":"https://api.github.com/repos/Sylius/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sylius/Sylius/downloads","issues_url":"https://api.github.com/repos/Sylius/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Sylius/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Sylius/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Sylius/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sylius/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Sylius/Sylius/releases{/id}","created_at":"2011-11-05T22:05:52Z","updated_at":"2015-09-15T20:42:38Z","pushed_at":"2015-09-17T12:18:11Z","git_url":"git://github.com/Sylius/Sylius.git","ssh_url":"git@github.com:Sylius/Sylius.git","clone_url":"https://github.com/Sylius/Sylius.git","svn_url":"https://github.com/Sylius/Sylius","homepage":"Sylius.org","size":68277,"stargazers_count":1938,"watchers_count":1938,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":705,"mirror_url":null,"open_issues_count":509,"forks":705,"open_issues":509,"watchers":1938,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3287"},"html":{"href":"https://github.com/Sylius/Sylius/pull/3287"},"issue":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3287"},"comments":{"href":"https://api.github.com/repos/Sylius/Sylius/issues/3287/comments"},"review_comments":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3287/comments"},"review_comment":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sylius/Sylius/pulls/3287/commits"},"statuses":{"href":"https://api.github.com/repos/Sylius/Sylius/statuses/270c1d879111cfbfb2780e439ba1e165f2976494"}}}}