{"action":"created","comment":{"url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/comments/69087836","id":69087836,"diff_hunk":"@@ -0,0 +1,43 @@\n+#!/bin/bash\n+set -e\n+\n+# Build script for Travis-CI.\n+\n+SCRIPTDIR=$(cd $(dirname \"$0\") && pwd)\n+ROOTDIR=\"$SCRIPTDIR/../..\"\n+WHISKDIR=\"$ROOTDIR/../openwhisk\"\n+\n+# Install OpenWhisk\n+\n+cd $WHISKDIR\n+tools/build/scanCode.py .\n+\n+cd $WHISKDIR/ansible\n+\n+ANSIBLE_CMD=\"ansible-playbook -i environments/travis\"\n+\n+$ANSIBLE_CMD setup.yml\n+$ANSIBLE_CMD prereq.yml\n+$ANSIBLE_CMD couchdb.yml\n+$ANSIBLE_CMD initdb.yml\n+\n+cd $WHISKDIR\n+\n+./gradlew distDocker\n+\n+cd $WHISKDIR/ansible\n+\n+$ANSIBLE_CMD openwhisk.yml\n+\n+# Set Environment\n+export OPENWHISK_HOME=$WHISKDIR\n+\n+# Install Catalog\n+\n+cat $WHISKDIR/whisk.properties\n+cd $ROOTDIR/packages\n+./installCatalog.sh $WHISKDIR/config/keys/auth.whisk.system\n+\n+# Test\n+cd $ROOTDIR\n+./gradlew :tests:test","path":"tools/travis/build.sh","position":43,"original_position":43,"commit_id":"2bee0db7fbbe2bc7c37741aa1bb9dd8ffbff3446","original_commit_id":"2bee0db7fbbe2bc7c37741aa1bb9dd8ffbff3446","user":{"login":"daisy-ycguo","id":1657701,"avatar_url":"https://avatars.githubusercontent.com/u/1657701?v=3","gravatar_id":"","url":"https://api.github.com/users/daisy-ycguo","html_url":"https://github.com/daisy-ycguo","followers_url":"https://api.github.com/users/daisy-ycguo/followers","following_url":"https://api.github.com/users/daisy-ycguo/following{/other_user}","gists_url":"https://api.github.com/users/daisy-ycguo/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy-ycguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy-ycguo/subscriptions","organizations_url":"https://api.github.com/users/daisy-ycguo/orgs","repos_url":"https://api.github.com/users/daisy-ycguo/repos","events_url":"https://api.github.com/users/daisy-ycguo/events{/privacy}","received_events_url":"https://api.github.com/users/daisy-ycguo/received_events","type":"User","site_admin":false},"body":"@houshengbo Your code will:\r\n1. remove the test codes under tests/src/packages.\r\n2. copy the test codes from openwhisk-catalog to openwhisk.\r\n3. invoke the tests of \"package.*\"\r\n\r\nBut I don't think I need to do that in travis CI, because\r\n1. I have resolved the compiler dependencies so it's not needed to copy openwhisk-catalog/tests/src to openwhisk/test/src.\r\n2. `./gradlew :tests:test` in openwhisk-catalog will only run the tests in openwhisk-catalog/tests/src. It will not run any tests in openwhisk/test/src. \r\n\r\nPlease think about my points.\r\n\r\nDaisy","created_at":"2016-06-30T08:01:36Z","updated_at":"2016-06-30T08:01:36Z","html_url":"https://github.com/openwhisk/openwhisk-catalog/pull/26#discussion_r69087836","pull_request_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/comments/69087836"},"html":{"href":"https://github.com/openwhisk/openwhisk-catalog/pull/26#discussion_r69087836"},"pull_request":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26","id":75419881,"html_url":"https://github.com/openwhisk/openwhisk-catalog/pull/26","diff_url":"https://github.com/openwhisk/openwhisk-catalog/pull/26.diff","patch_url":"https://github.com/openwhisk/openwhisk-catalog/pull/26.patch","issue_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/26","number":26,"state":"open","locked":false,"title":"[WIP] Enable travis CI of catalog","user":{"login":"daisy-ycguo","id":1657701,"avatar_url":"https://avatars.githubusercontent.com/u/1657701?v=3","gravatar_id":"","url":"https://api.github.com/users/daisy-ycguo","html_url":"https://github.com/daisy-ycguo","followers_url":"https://api.github.com/users/daisy-ycguo/followers","following_url":"https://api.github.com/users/daisy-ycguo/following{/other_user}","gists_url":"https://api.github.com/users/daisy-ycguo/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy-ycguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy-ycguo/subscriptions","organizations_url":"https://api.github.com/users/daisy-ycguo/orgs","repos_url":"https://api.github.com/users/daisy-ycguo/repos","events_url":"https://api.github.com/users/daisy-ycguo/events{/privacy}","received_events_url":"https://api.github.com/users/daisy-ycguo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-28T05:23:13Z","updated_at":"2016-06-30T08:01:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73e4e3aa4e212bf169f7649804ade69d2a3ea396","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26/commits","review_comments_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26/comments","review_comment_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/26/comments","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/statuses/2bee0db7fbbe2bc7c37741aa1bb9dd8ffbff3446","head":{"label":"daisy-ycguo:travis","ref":"travis","sha":"2bee0db7fbbe2bc7c37741aa1bb9dd8ffbff3446","user":{"login":"daisy-ycguo","id":1657701,"avatar_url":"https://avatars.githubusercontent.com/u/1657701?v=3","gravatar_id":"","url":"https://api.github.com/users/daisy-ycguo","html_url":"https://github.com/daisy-ycguo","followers_url":"https://api.github.com/users/daisy-ycguo/followers","following_url":"https://api.github.com/users/daisy-ycguo/following{/other_user}","gists_url":"https://api.github.com/users/daisy-ycguo/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy-ycguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy-ycguo/subscriptions","organizations_url":"https://api.github.com/users/daisy-ycguo/orgs","repos_url":"https://api.github.com/users/daisy-ycguo/repos","events_url":"https://api.github.com/users/daisy-ycguo/events{/privacy}","received_events_url":"https://api.github.com/users/daisy-ycguo/received_events","type":"User","site_admin":false},"repo":{"id":61338905,"name":"openwhisk-catalog","full_name":"daisy-ycguo/openwhisk-catalog","owner":{"login":"daisy-ycguo","id":1657701,"avatar_url":"https://avatars.githubusercontent.com/u/1657701?v=3","gravatar_id":"","url":"https://api.github.com/users/daisy-ycguo","html_url":"https://github.com/daisy-ycguo","followers_url":"https://api.github.com/users/daisy-ycguo/followers","following_url":"https://api.github.com/users/daisy-ycguo/following{/other_user}","gists_url":"https://api.github.com/users/daisy-ycguo/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy-ycguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy-ycguo/subscriptions","organizations_url":"https://api.github.com/users/daisy-ycguo/orgs","repos_url":"https://api.github.com/users/daisy-ycguo/repos","events_url":"https://api.github.com/users/daisy-ycguo/events{/privacy}","received_events_url":"https://api.github.com/users/daisy-ycguo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daisy-ycguo/openwhisk-catalog","description":"Staging place to move out the catalog from openwhisk","fork":true,"url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog","forks_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/forks","keys_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/teams","hooks_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/hooks","issue_events_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/issues/events{/number}","events_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/events","assignees_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/assignees{/user}","branches_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/branches{/branch}","tags_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/tags","blobs_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/git/refs{/sha}","trees_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/statuses/{sha}","languages_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/languages","stargazers_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/stargazers","contributors_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/contributors","subscribers_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/subscribers","subscription_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/subscription","commits_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/commits{/sha}","git_commits_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/git/commits{/sha}","comments_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/comments{/number}","issue_comment_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/issues/comments{/number}","contents_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/contents/{+path}","compare_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/merges","archive_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/downloads","issues_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/issues{/number}","pulls_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/pulls{/number}","milestones_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/milestones{/number}","notifications_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/labels{/name}","releases_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/releases{/id}","deployments_url":"https://api.github.com/repos/daisy-ycguo/openwhisk-catalog/deployments","created_at":"2016-06-17T02:09:19Z","updated_at":"2016-06-29T05:43:09Z","pushed_at":"2016-06-29T08:37:15Z","git_url":"git://github.com/daisy-ycguo/openwhisk-catalog.git","ssh_url":"git@github.com:daisy-ycguo/openwhisk-catalog.git","clone_url":"https://github.com/daisy-ycguo/openwhisk-catalog.git","svn_url":"https://github.com/daisy-ycguo/openwhisk-catalog","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"travis"}},"base":{"label":"openwhisk:master","ref":"master","sha":"0a2e14865354d33845defffe9bc4007009fdc717","user":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"repo":{"id":60272020,"name":"openwhisk-catalog","full_name":"openwhisk/openwhisk-catalog","owner":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwhisk/openwhisk-catalog","description":"Staging place to move out the catalog from openwhisk","fork":false,"url":"https://api.github.com/repos/openwhisk/openwhisk-catalog","forks_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/forks","keys_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/teams","hooks_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/hooks","issue_events_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/events{/number}","events_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/events","assignees_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/assignees{/user}","branches_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/branches{/branch}","tags_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/tags","blobs_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/statuses/{sha}","languages_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/languages","stargazers_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/stargazers","contributors_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/contributors","subscribers_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/subscribers","subscription_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/subscription","commits_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/contents/{+path}","compare_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/merges","archive_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/downloads","issues_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues{/number}","pulls_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls{/number}","milestones_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/milestones{/number}","notifications_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/labels{/name}","releases_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/releases{/id}","deployments_url":"https://api.github.com/repos/openwhisk/openwhisk-catalog/deployments","created_at":"2016-06-02T14:43:52Z","updated_at":"2016-06-20T19:24:16Z","pushed_at":"2016-06-29T08:37:15Z","git_url":"git://github.com/openwhisk/openwhisk-catalog.git","ssh_url":"git@github.com:openwhisk/openwhisk-catalog.git","clone_url":"https://github.com/openwhisk/openwhisk-catalog.git","svn_url":"https://github.com/openwhisk/openwhisk-catalog","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26"},"html":{"href":"https://github.com/openwhisk/openwhisk-catalog/pull/26"},"issue":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/26"},"comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/openwhisk/openwhisk-catalog/statuses/2bee0db7fbbe2bc7c37741aa1bb9dd8ffbff3446"}}}}
{"actor":{"display_login":"daisy-ycguo"}}