{"action":"created","comment":{"url":"https://api.github.com/repos/pfnet-research/menoh/pulls/comments/218313669","pull_request_review_id":156221248,"id":218313669,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODMxMzY2OQ==","diff_hunk":"@@ -0,0 +1,85 @@\n+# check if variables are set\n+test -n \"${PROTOBUF_VERSION}\" || { echo \"PROTOBUF_VERSION can't be empty\" 1>&2; exit 1; }\n+test -n \"${MKLDNN_VERSION}\" || { echo \"MKLDNN_VERSION can't be empty\" 1>&2; exit 1; }\n+test -n \"${MAKE_JOBS}\" || { echo \"MAKE_JOBS can't be empty\" 1>&2; exit 1; }\n+\n+test -n \"${LINK_STATIC}\" || LINK_STATIC=false\n+\n+# TODO: make them configurable for outside Travis\n+export WORK_DIR=${HOME}\n+export PROJ_DIR=${TRAVIS_BUILD_DIR} # = ${HOME}/build/${TRAVIS_REPO_SLUG}\n+\n+export PROTOBUF_INSTALL_DIR=/usr/local\n+export MKLDNN_INSTALL_DIR=/usr/local\n+\n+# Run a docker container and map Travis's $HOME to the container's $HOME\n+# $HOME:$HOME = /home/travis                     : /home/travis\n+#               /home/travis/build               : /home/travis/build\n+#               /home/travis/build/<user>/<repo> : /home/travis/build/<user>/<repo> (= ${TRAVIS_BUILD_DIR})\n+SHARED_SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)\n+source ${SHARED_SCRIPT_DIR}/run-container.sh --image ${BUILDENV_IMAGE} --work-dir ${WORK_DIR}\n+test -n \"${BUILDENV_CONTAINER_ID}\" || { echo \"BUILDENV_CONTAINER_ID can't be empty\" 1>&2; exit 1; }\n+\n+## define shared functions for Linux-based platforms\n+\n+# Run the specified string as command in the container\n+function docker_exec() {\n+    docker exec -it ${BUILDENV_CONTAINER_ID} /bin/bash -xec \"$1\"\n+    return $?\n+}\n+\n+# Run the specified shell script in the container\n+function docker_exec_script() {\n+    docker exec -it ${BUILDENV_CONTAINER_ID} /bin/bash -xe $@\n+    return $?\n+}\n+\n+function install_protobuf() {\n+    docker_exec_script \\\n+        ${PROJ_DIR}/.travis/install-protobuf.sh \\\n+            --version ${PROTOBUF_VERSION} \\\n+            --download-dir ${WORK_DIR}/downloads \\\n+            --build-dir ${WORK_DIR}/build \\\n+            --install-dir ${PROTOBUF_INSTALL_DIR} \\\n+            --parallel ${MAKE_JOBS}\n+}\n+\n+function install_mkldnn() {\n+    docker_exec_script \\\n+        ${PROJ_DIR}/.travis/install-mkldnn.sh \\\n+            --version ${MKLDNN_VERSION} \\\n+            --download-dir ${WORK_DIR}/downloads \\\n+            --build-dir ${WORK_DIR}/build \\\n+            --install-dir ${MKLDNN_INSTALL_DIR} \\\n+            --parallel ${MAKE_JOBS}\n+}\n+\n+function prepare_menoh_data() {\n+    docker_exec_script \\\n+        ${PROJ_DIR}/.travis/prepare-menoh-data.sh \\\n+            --source-dir ${PROJ_DIR} \\\n+            --python-executable python3\n+}\n+\n+function build_menoh() {\n+    if [ \"${LINK_STATIC}\" != \"true\" ]; then\n+        docker_exec_script \\\n+            ${PROJ_DIR}/.travis/build-menoh.sh \\\n+                --source-dir ${PROJ_DIR}\n+    else\n+        docker_exec_script \\\n+            ${PROJ_DIR}/.travis/build-menoh.sh \\\n+                --source-dir ${PROJ_DIR} \\\n+                --link-static-libgcc ON \\\n+                --link-static-libstdcxx ON \\\n+                --link-static-libprotobuf ON\n+    fi\n+}\n+\n+function test_menoh() {\n+    docker_exec \"cd ${PROJ_DIR}/build && ./test/menoh_test\"\n+}\n+\n+function check_menoh_artifact() {\n+    ldd ${PROJ_DIR}/build/menoh/libmenoh.so","path":".travis/init-build-linux.sh","position":84,"original_position":84,"commit_id":"7a8e18652ae87c9664d3d131cd3d077e20384f47","original_commit_id":"7a8e18652ae87c9664d3d131cd3d077e20384f47","user":{"login":"msakai","id":157688,"node_id":"MDQ6VXNlcjE1NzY4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/157688?v=4","gravatar_id":"","url":"https://api.github.com/users/msakai","html_url":"https://github.com/msakai","followers_url":"https://api.github.com/users/msakai/followers","following_url":"https://api.github.com/users/msakai/following{/other_user}","gists_url":"https://api.github.com/users/msakai/gists{/gist_id}","starred_url":"https://api.github.com/users/msakai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msakai/subscriptions","organizations_url":"https://api.github.com/users/msakai/orgs","repos_url":"https://api.github.com/users/msakai/repos","events_url":"https://api.github.com/users/msakai/events{/privacy}","received_events_url":"https://api.github.com/users/msakai/received_events","type":"User","site_admin":false},"body":"I see.","created_at":"2018-09-18T06:42:21Z","updated_at":"2018-09-18T06:42:21Z","html_url":"https://github.com/pfnet-research/menoh/pull/105#discussion_r218313669","pull_request_url":"https://api.github.com/repos/pfnet-research/menoh/pulls/105","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/comments/218313669"},"html":{"href":"https://github.com/pfnet-research/menoh/pull/105#discussion_r218313669"},"pull_request":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/105"}},"in_reply_to_id":218304683},"pull_request":{"url":"https://api.github.com/repos/pfnet-research/menoh/pulls/105","id":215501417,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NTAxNDE3","html_url":"https://github.com/pfnet-research/menoh/pull/105","diff_url":"https://github.com/pfnet-research/menoh/pull/105.diff","patch_url":"https://github.com/pfnet-research/menoh/pull/105.patch","issue_url":"https://api.github.com/repos/pfnet-research/menoh/issues/105","number":105,"state":"open","locked":false,"title":"Dockerize the build workflow on Travis CI for Linux","user":{"login":"okapies","id":657642,"node_id":"MDQ6VXNlcjY1NzY0Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/657642?v=4","gravatar_id":"","url":"https://api.github.com/users/okapies","html_url":"https://github.com/okapies","followers_url":"https://api.github.com/users/okapies/followers","following_url":"https://api.github.com/users/okapies/following{/other_user}","gists_url":"https://api.github.com/users/okapies/gists{/gist_id}","starred_url":"https://api.github.com/users/okapies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okapies/subscriptions","organizations_url":"https://api.github.com/users/okapies/orgs","repos_url":"https://api.github.com/users/okapies/repos","events_url":"https://api.github.com/users/okapies/events{/privacy}","received_events_url":"https://api.github.com/users/okapies/received_events","type":"User","site_admin":false},"body":"Run building Menoh on Linux using Docker container. Detailed design is written in [.travis/README.md](https://github.com/pfnet-research/menoh/blob/feature/travis-dockernize/.travis/README.md).\r\n\r\nNote: Currently `linux-x86_64` platform uses GCC 6.3.1 on CentOS 6. I'd like to use more older GCC for improving binary compatibility but I'm facing some problems. I plan to solve them later.\r\n","created_at":"2018-09-14T07:13:19Z","updated_at":"2018-09-18T06:42:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de3147dedc22c62851ad6b617bc80ceaa2354f62","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pfnet-research/menoh/pulls/105/commits","review_comments_url":"https://api.github.com/repos/pfnet-research/menoh/pulls/105/comments","review_comment_url":"https://api.github.com/repos/pfnet-research/menoh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pfnet-research/menoh/issues/105/comments","statuses_url":"https://api.github.com/repos/pfnet-research/menoh/statuses/7a8e18652ae87c9664d3d131cd3d077e20384f47","head":{"label":"pfnet-research:feature/travis-dockernize","ref":"feature/travis-dockernize","sha":"7a8e18652ae87c9664d3d131cd3d077e20384f47","user":{"login":"pfnet-research","id":23070723,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcwNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/23070723?v=4","gravatar_id":"","url":"https://api.github.com/users/pfnet-research","html_url":"https://github.com/pfnet-research","followers_url":"https://api.github.com/users/pfnet-research/followers","following_url":"https://api.github.com/users/pfnet-research/following{/other_user}","gists_url":"https://api.github.com/users/pfnet-research/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet-research/subscriptions","organizations_url":"https://api.github.com/users/pfnet-research/orgs","repos_url":"https://api.github.com/users/pfnet-research/repos","events_url":"https://api.github.com/users/pfnet-research/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet-research/received_events","type":"Organization","site_admin":false},"repo":{"id":138105757,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxMDU3NTc=","name":"menoh","full_name":"pfnet-research/menoh","private":false,"owner":{"login":"pfnet-research","id":23070723,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcwNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/23070723?v=4","gravatar_id":"","url":"https://api.github.com/users/pfnet-research","html_url":"https://github.com/pfnet-research","followers_url":"https://api.github.com/users/pfnet-research/followers","following_url":"https://api.github.com/users/pfnet-research/following{/other_user}","gists_url":"https://api.github.com/users/pfnet-research/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet-research/subscriptions","organizations_url":"https://api.github.com/users/pfnet-research/orgs","repos_url":"https://api.github.com/users/pfnet-research/repos","events_url":"https://api.github.com/users/pfnet-research/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet-research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pfnet-research/menoh","description":"Menoh: fast DNN inference library with multiple programming language support","fork":false,"url":"https://api.github.com/repos/pfnet-research/menoh","forks_url":"https://api.github.com/repos/pfnet-research/menoh/forks","keys_url":"https://api.github.com/repos/pfnet-research/menoh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pfnet-research/menoh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pfnet-research/menoh/teams","hooks_url":"https://api.github.com/repos/pfnet-research/menoh/hooks","issue_events_url":"https://api.github.com/repos/pfnet-research/menoh/issues/events{/number}","events_url":"https://api.github.com/repos/pfnet-research/menoh/events","assignees_url":"https://api.github.com/repos/pfnet-research/menoh/assignees{/user}","branches_url":"https://api.github.com/repos/pfnet-research/menoh/branches{/branch}","tags_url":"https://api.github.com/repos/pfnet-research/menoh/tags","blobs_url":"https://api.github.com/repos/pfnet-research/menoh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pfnet-research/menoh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pfnet-research/menoh/git/refs{/sha}","trees_url":"https://api.github.com/repos/pfnet-research/menoh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pfnet-research/menoh/statuses/{sha}","languages_url":"https://api.github.com/repos/pfnet-research/menoh/languages","stargazers_url":"https://api.github.com/repos/pfnet-research/menoh/stargazers","contributors_url":"https://api.github.com/repos/pfnet-research/menoh/contributors","subscribers_url":"https://api.github.com/repos/pfnet-research/menoh/subscribers","subscription_url":"https://api.github.com/repos/pfnet-research/menoh/subscription","commits_url":"https://api.github.com/repos/pfnet-research/menoh/commits{/sha}","git_commits_url":"https://api.github.com/repos/pfnet-research/menoh/git/commits{/sha}","comments_url":"https://api.github.com/repos/pfnet-research/menoh/comments{/number}","issue_comment_url":"https://api.github.com/repos/pfnet-research/menoh/issues/comments{/number}","contents_url":"https://api.github.com/repos/pfnet-research/menoh/contents/{+path}","compare_url":"https://api.github.com/repos/pfnet-research/menoh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pfnet-research/menoh/merges","archive_url":"https://api.github.com/repos/pfnet-research/menoh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pfnet-research/menoh/downloads","issues_url":"https://api.github.com/repos/pfnet-research/menoh/issues{/number}","pulls_url":"https://api.github.com/repos/pfnet-research/menoh/pulls{/number}","milestones_url":"https://api.github.com/repos/pfnet-research/menoh/milestones{/number}","notifications_url":"https://api.github.com/repos/pfnet-research/menoh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pfnet-research/menoh/labels{/name}","releases_url":"https://api.github.com/repos/pfnet-research/menoh/releases{/id}","deployments_url":"https://api.github.com/repos/pfnet-research/menoh/deployments","created_at":"2018-06-21T01:48:20Z","updated_at":"2018-09-18T02:06:16Z","pushed_at":"2018-09-18T06:06:20Z","git_url":"git://github.com/pfnet-research/menoh.git","ssh_url":"git@github.com:pfnet-research/menoh.git","clone_url":"https://github.com/pfnet-research/menoh.git","svn_url":"https://github.com/pfnet-research/menoh","homepage":"","size":768,"stargazers_count":185,"watchers_count":185,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":22,"watchers":185,"default_branch":"master"}},"base":{"label":"pfnet-research:master","ref":"master","sha":"42a14419fe13395ba47fee94626b401e7c100dec","user":{"login":"pfnet-research","id":23070723,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcwNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/23070723?v=4","gravatar_id":"","url":"https://api.github.com/users/pfnet-research","html_url":"https://github.com/pfnet-research","followers_url":"https://api.github.com/users/pfnet-research/followers","following_url":"https://api.github.com/users/pfnet-research/following{/other_user}","gists_url":"https://api.github.com/users/pfnet-research/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet-research/subscriptions","organizations_url":"https://api.github.com/users/pfnet-research/orgs","repos_url":"https://api.github.com/users/pfnet-research/repos","events_url":"https://api.github.com/users/pfnet-research/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet-research/received_events","type":"Organization","site_admin":false},"repo":{"id":138105757,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgxMDU3NTc=","name":"menoh","full_name":"pfnet-research/menoh","private":false,"owner":{"login":"pfnet-research","id":23070723,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcwNzIz","avatar_url":"https://avatars2.githubusercontent.com/u/23070723?v=4","gravatar_id":"","url":"https://api.github.com/users/pfnet-research","html_url":"https://github.com/pfnet-research","followers_url":"https://api.github.com/users/pfnet-research/followers","following_url":"https://api.github.com/users/pfnet-research/following{/other_user}","gists_url":"https://api.github.com/users/pfnet-research/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet-research/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet-research/subscriptions","organizations_url":"https://api.github.com/users/pfnet-research/orgs","repos_url":"https://api.github.com/users/pfnet-research/repos","events_url":"https://api.github.com/users/pfnet-research/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet-research/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pfnet-research/menoh","description":"Menoh: fast DNN inference library with multiple programming language support","fork":false,"url":"https://api.github.com/repos/pfnet-research/menoh","forks_url":"https://api.github.com/repos/pfnet-research/menoh/forks","keys_url":"https://api.github.com/repos/pfnet-research/menoh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pfnet-research/menoh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pfnet-research/menoh/teams","hooks_url":"https://api.github.com/repos/pfnet-research/menoh/hooks","issue_events_url":"https://api.github.com/repos/pfnet-research/menoh/issues/events{/number}","events_url":"https://api.github.com/repos/pfnet-research/menoh/events","assignees_url":"https://api.github.com/repos/pfnet-research/menoh/assignees{/user}","branches_url":"https://api.github.com/repos/pfnet-research/menoh/branches{/branch}","tags_url":"https://api.github.com/repos/pfnet-research/menoh/tags","blobs_url":"https://api.github.com/repos/pfnet-research/menoh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pfnet-research/menoh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pfnet-research/menoh/git/refs{/sha}","trees_url":"https://api.github.com/repos/pfnet-research/menoh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pfnet-research/menoh/statuses/{sha}","languages_url":"https://api.github.com/repos/pfnet-research/menoh/languages","stargazers_url":"https://api.github.com/repos/pfnet-research/menoh/stargazers","contributors_url":"https://api.github.com/repos/pfnet-research/menoh/contributors","subscribers_url":"https://api.github.com/repos/pfnet-research/menoh/subscribers","subscription_url":"https://api.github.com/repos/pfnet-research/menoh/subscription","commits_url":"https://api.github.com/repos/pfnet-research/menoh/commits{/sha}","git_commits_url":"https://api.github.com/repos/pfnet-research/menoh/git/commits{/sha}","comments_url":"https://api.github.com/repos/pfnet-research/menoh/comments{/number}","issue_comment_url":"https://api.github.com/repos/pfnet-research/menoh/issues/comments{/number}","contents_url":"https://api.github.com/repos/pfnet-research/menoh/contents/{+path}","compare_url":"https://api.github.com/repos/pfnet-research/menoh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pfnet-research/menoh/merges","archive_url":"https://api.github.com/repos/pfnet-research/menoh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pfnet-research/menoh/downloads","issues_url":"https://api.github.com/repos/pfnet-research/menoh/issues{/number}","pulls_url":"https://api.github.com/repos/pfnet-research/menoh/pulls{/number}","milestones_url":"https://api.github.com/repos/pfnet-research/menoh/milestones{/number}","notifications_url":"https://api.github.com/repos/pfnet-research/menoh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pfnet-research/menoh/labels{/name}","releases_url":"https://api.github.com/repos/pfnet-research/menoh/releases{/id}","deployments_url":"https://api.github.com/repos/pfnet-research/menoh/deployments","created_at":"2018-06-21T01:48:20Z","updated_at":"2018-09-18T02:06:16Z","pushed_at":"2018-09-18T06:06:20Z","git_url":"git://github.com/pfnet-research/menoh.git","ssh_url":"git@github.com:pfnet-research/menoh.git","clone_url":"https://github.com/pfnet-research/menoh.git","svn_url":"https://github.com/pfnet-research/menoh","homepage":"","size":768,"stargazers_count":185,"watchers_count":185,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":18,"open_issues":22,"watchers":185,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/105"},"html":{"href":"https://github.com/pfnet-research/menoh/pull/105"},"issue":{"href":"https://api.github.com/repos/pfnet-research/menoh/issues/105"},"comments":{"href":"https://api.github.com/repos/pfnet-research/menoh/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pfnet-research/menoh/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/pfnet-research/menoh/statuses/7a8e18652ae87c9664d3d131cd3d077e20384f47"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"msakai"}}