{"action":"created","comment":{"url":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments/89231604","pull_request_review_id":9779316,"id":89231604,"diff_hunk":"@@ -0,0 +1,164 @@\n+# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-\n+#\n+# Copyright (C) 2015 Canonical Ltd\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License version 3 as\n+# published by the Free Software Foundation.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+\n+\"\"\"Snapcraft integration for Travis (CI).\n+\n+This command currently depends on working `travis` CLI environment and\n+a previously initialised Travis project (`.travis.yml`).\n+\n+Make sure your Travis project is also configured to \"Build pushes\", this\n+way every new push to `master` will result in a new snap revision on the\n+Store.\n+\n+This operation will acquire properly attenuated Store credentials and\n+encrypt it for use in your testbed (`.travis_snapcraft.cfg`), only Travis\n+has the private key to decrypt it and will be only available to branches\n+of the same repository, not forks.\n+\n+Then it will adjust Travis configuration ('.travis.yml') with the commands\n+to decrypt credentials and install and run `snapcraft` to release your snap","path":"snapcraft/integrations/travis.py","position":32,"original_position":32,"commit_id":"518dc22bc609c4058bf0458c450bd087ddd572b8","original_commit_id":"518dc22bc609c4058bf0458c450bd087ddd572b8","user":{"login":"cprov","id":3610997,"avatar_url":"https://avatars.githubusercontent.com/u/3610997?v=3","gravatar_id":"","url":"https://api.github.com/users/cprov","html_url":"https://github.com/cprov","followers_url":"https://api.github.com/users/cprov/followers","following_url":"https://api.github.com/users/cprov/following{/other_user}","gists_url":"https://api.github.com/users/cprov/gists{/gist_id}","starred_url":"https://api.github.com/users/cprov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cprov/subscriptions","organizations_url":"https://api.github.com/users/cprov/orgs","repos_url":"https://api.github.com/users/cprov/repos","events_url":"https://api.github.com/users/cprov/events{/privacy}","received_events_url":"https://api.github.com/users/cprov/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-11-22T23:18:01Z","updated_at":"2016-11-22T23:18:01Z","html_url":"https://github.com/snapcore/snapcraft/pull/901#discussion_r89231604","pull_request_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/901","_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments/89231604"},"html":{"href":"https://github.com/snapcore/snapcraft/pull/901#discussion_r89231604"},"pull_request":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/901"}}},"pull_request":{"url":"https://api.github.com/repos/snapcore/snapcraft/pulls/901","id":93492650,"html_url":"https://github.com/snapcore/snapcraft/pull/901","diff_url":"https://github.com/snapcore/snapcraft/pull/901.diff","patch_url":"https://github.com/snapcore/snapcraft/pull/901.patch","issue_url":"https://api.github.com/repos/snapcore/snapcraft/issues/901","number":901,"state":"open","locked":false,"title":"Basic 'enable-ci' implementation.","user":{"login":"cprov","id":3610997,"avatar_url":"https://avatars.githubusercontent.com/u/3610997?v=3","gravatar_id":"","url":"https://api.github.com/users/cprov","html_url":"https://github.com/cprov","followers_url":"https://api.github.com/users/cprov/followers","following_url":"https://api.github.com/users/cprov/following{/other_user}","gists_url":"https://api.github.com/users/cprov/gists{/gist_id}","starred_url":"https://api.github.com/users/cprov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cprov/subscriptions","organizations_url":"https://api.github.com/users/cprov/orgs","repos_url":"https://api.github.com/users/cprov/repos","events_url":"https://api.github.com/users/cprov/events{/privacy}","received_events_url":"https://api.github.com/users/cprov/received_events","type":"User","site_admin":false},"body":"Exploratory work for automating travis CI setup.\r\n\r\nIt's driving \"travis-cli\" (sudo gem install travis), which could either be replaced by playing travis/GH APIs directly or, perhaps, snapping the ruby app (too crazy ?).\r\n\r\nIt also proposes per-project snapcraft configuration, where macaroons could be properly attenuated and relocated for each project. However, I am not entirely sold on this and the risk of committing credentials, even if they are attenuated.\r\n\r\nRegarding macaroon attenuation, the Store support attenuation to one (or multiple) channels was recently added.\r\n","created_at":"2016-11-13T23:44:30Z","updated_at":"2016-11-22T23:18:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c34ae139e84c3d540108754b7a8b846e752656c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/901/commits","review_comments_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/901/comments","review_comment_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snapcraft/issues/901/comments","statuses_url":"https://api.github.com/repos/snapcore/snapcraft/statuses/518dc22bc609c4058bf0458c450bd087ddd572b8","head":{"label":"cprov:enable-travis","ref":"enable-travis","sha":"518dc22bc609c4058bf0458c450bd087ddd572b8","user":{"login":"cprov","id":3610997,"avatar_url":"https://avatars.githubusercontent.com/u/3610997?v=3","gravatar_id":"","url":"https://api.github.com/users/cprov","html_url":"https://github.com/cprov","followers_url":"https://api.github.com/users/cprov/followers","following_url":"https://api.github.com/users/cprov/following{/other_user}","gists_url":"https://api.github.com/users/cprov/gists{/gist_id}","starred_url":"https://api.github.com/users/cprov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cprov/subscriptions","organizations_url":"https://api.github.com/users/cprov/orgs","repos_url":"https://api.github.com/users/cprov/repos","events_url":"https://api.github.com/users/cprov/events{/privacy}","received_events_url":"https://api.github.com/users/cprov/received_events","type":"User","site_admin":false},"repo":{"id":66863308,"name":"snapcraft","full_name":"cprov/snapcraft","owner":{"login":"cprov","id":3610997,"avatar_url":"https://avatars.githubusercontent.com/u/3610997?v=3","gravatar_id":"","url":"https://api.github.com/users/cprov","html_url":"https://github.com/cprov","followers_url":"https://api.github.com/users/cprov/followers","following_url":"https://api.github.com/users/cprov/following{/other_user}","gists_url":"https://api.github.com/users/cprov/gists{/gist_id}","starred_url":"https://api.github.com/users/cprov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cprov/subscriptions","organizations_url":"https://api.github.com/users/cprov/orgs","repos_url":"https://api.github.com/users/cprov/repos","events_url":"https://api.github.com/users/cprov/events{/privacy}","received_events_url":"https://api.github.com/users/cprov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cprov/snapcraft","description":"Snapcraft is a delightful packaging tool","fork":true,"url":"https://api.github.com/repos/cprov/snapcraft","forks_url":"https://api.github.com/repos/cprov/snapcraft/forks","keys_url":"https://api.github.com/repos/cprov/snapcraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cprov/snapcraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cprov/snapcraft/teams","hooks_url":"https://api.github.com/repos/cprov/snapcraft/hooks","issue_events_url":"https://api.github.com/repos/cprov/snapcraft/issues/events{/number}","events_url":"https://api.github.com/repos/cprov/snapcraft/events","assignees_url":"https://api.github.com/repos/cprov/snapcraft/assignees{/user}","branches_url":"https://api.github.com/repos/cprov/snapcraft/branches{/branch}","tags_url":"https://api.github.com/repos/cprov/snapcraft/tags","blobs_url":"https://api.github.com/repos/cprov/snapcraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cprov/snapcraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cprov/snapcraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/cprov/snapcraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cprov/snapcraft/statuses/{sha}","languages_url":"https://api.github.com/repos/cprov/snapcraft/languages","stargazers_url":"https://api.github.com/repos/cprov/snapcraft/stargazers","contributors_url":"https://api.github.com/repos/cprov/snapcraft/contributors","subscribers_url":"https://api.github.com/repos/cprov/snapcraft/subscribers","subscription_url":"https://api.github.com/repos/cprov/snapcraft/subscription","commits_url":"https://api.github.com/repos/cprov/snapcraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/cprov/snapcraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/cprov/snapcraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/cprov/snapcraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/cprov/snapcraft/contents/{+path}","compare_url":"https://api.github.com/repos/cprov/snapcraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cprov/snapcraft/merges","archive_url":"https://api.github.com/repos/cprov/snapcraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cprov/snapcraft/downloads","issues_url":"https://api.github.com/repos/cprov/snapcraft/issues{/number}","pulls_url":"https://api.github.com/repos/cprov/snapcraft/pulls{/number}","milestones_url":"https://api.github.com/repos/cprov/snapcraft/milestones{/number}","notifications_url":"https://api.github.com/repos/cprov/snapcraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cprov/snapcraft/labels{/name}","releases_url":"https://api.github.com/repos/cprov/snapcraft/releases{/id}","deployments_url":"https://api.github.com/repos/cprov/snapcraft/deployments","created_at":"2016-08-29T17:05:30Z","updated_at":"2016-08-29T17:05:31Z","pushed_at":"2016-11-22T13:16:55Z","git_url":"git://github.com/cprov/snapcraft.git","ssh_url":"git@github.com:cprov/snapcraft.git","clone_url":"https://github.com/cprov/snapcraft.git","svn_url":"https://github.com/cprov/snapcraft","homepage":null,"size":5573,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"snapcore:master","ref":"master","sha":"5c1839d68ef4349301a56fb78bfd7d2f7c0adee7","user":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":45199136,"name":"snapcraft","full_name":"snapcore/snapcraft","owner":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snapcraft","description":"Snapcraft is a delightful packaging tool","fork":false,"url":"https://api.github.com/repos/snapcore/snapcraft","forks_url":"https://api.github.com/repos/snapcore/snapcraft/forks","keys_url":"https://api.github.com/repos/snapcore/snapcraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snapcraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snapcraft/teams","hooks_url":"https://api.github.com/repos/snapcore/snapcraft/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snapcraft/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snapcraft/events","assignees_url":"https://api.github.com/repos/snapcore/snapcraft/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snapcraft/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snapcraft/tags","blobs_url":"https://api.github.com/repos/snapcore/snapcraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snapcraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snapcraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snapcraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snapcraft/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snapcraft/languages","stargazers_url":"https://api.github.com/repos/snapcore/snapcraft/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snapcraft/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snapcraft/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snapcraft/subscription","commits_url":"https://api.github.com/repos/snapcore/snapcraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snapcraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snapcraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snapcraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snapcraft/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snapcraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snapcraft/merges","archive_url":"https://api.github.com/repos/snapcore/snapcraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snapcraft/downloads","issues_url":"https://api.github.com/repos/snapcore/snapcraft/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snapcraft/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snapcraft/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snapcraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snapcraft/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snapcraft/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snapcraft/deployments","created_at":"2015-10-29T17:23:15Z","updated_at":"2016-11-22T01:06:27Z","pushed_at":"2016-11-22T22:47:51Z","git_url":"git://github.com/snapcore/snapcraft.git","ssh_url":"git@github.com:snapcore/snapcraft.git","clone_url":"https://github.com/snapcore/snapcraft.git","svn_url":"https://github.com/snapcore/snapcraft","homepage":null,"size":8423,"stargazers_count":237,"watchers_count":237,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":138,"mirror_url":null,"open_issues_count":19,"forks":138,"open_issues":19,"watchers":237,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/901"},"html":{"href":"https://github.com/snapcore/snapcraft/pull/901"},"issue":{"href":"https://api.github.com/repos/snapcore/snapcraft/issues/901"},"comments":{"href":"https://api.github.com/repos/snapcore/snapcraft/issues/901/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/901/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/901/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snapcraft/statuses/518dc22bc609c4058bf0458c450bd087ddd572b8"}}}}
{"actor":{"display_login":"cprov"}}