{"action":"closed","number":848,"pull_request":{"url":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848","id":27242201,"html_url":"https://github.com/andreasgal/j2me.js/pull/848","diff_url":"https://github.com/andreasgal/j2me.js/pull/848.diff","patch_url":"https://github.com/andreasgal/j2me.js/pull/848.patch","issue_url":"https://api.github.com/repos/andreasgal/j2me.js/issues/848","number":848,"state":"closed","locked":false,"title":"cache node modules and SlimerJS/XULRunner packages (fixes #847)","user":{"login":"mykmelez","id":305455,"avatar_url":"https://avatars.githubusercontent.com/u/305455?v=3","gravatar_id":"","url":"https://api.github.com/users/mykmelez","html_url":"https://github.com/mykmelez","followers_url":"https://api.github.com/users/mykmelez/followers","following_url":"https://api.github.com/users/mykmelez/following{/other_user}","gists_url":"https://api.github.com/users/mykmelez/gists{/gist_id}","starred_url":"https://api.github.com/users/mykmelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykmelez/subscriptions","organizations_url":"https://api.github.com/users/mykmelez/orgs","repos_url":"https://api.github.com/users/mykmelez/repos","events_url":"https://api.github.com/users/mykmelez/events{/privacy}","received_events_url":"https://api.github.com/users/mykmelez/received_events","type":"User","site_admin":false},"body":"Now that we're using Travis's container-based infrastructure, we can cache some dependencies. This change caches local node modules and the SlimerJS/XULRunner packages (both of which it now downloads to */tmp/j2me.js/*, since Travis can only cache arbitrary directories, not arbitrary individual files).\r\n\r\n(We might also be able to cache the SlimerJS/XULRunner installations, but I'd have to think through that more carefully, since \"installation\" of those packages is currently just unzip/tar, which might not update the installations correctly when the packages get updated.)\r\n\r\nHere's the first build with this change, where you can see the cache being created:\r\n\r\nhttps://travis-ci.org/mykmelez/j2me.js/builds/46804315\r\n\r\nAnd here's an empty change I pushed so you can see it being restored and used:\r\n\r\nhttps://travis-ci.org/mykmelez/j2me.js/builds/46804632\r\n\r\nStrangely, *casperjs* node module installation is still almost as expensive (6.76s to 5.25s), even though it should have been cached. *SlimerJS* is significantly cheaper (1.11s to 0.35s), although the lightweight edition is so small that the difference is negligible to overall build times. And *XULRunner* is much cheaper (7.60s to 0.34s), which is significant, since I've seen download times for that file as high as 25s.\r\n\r\nNevertheless, note that it took 6.41s to restore the cache, so it's only worth it for XULRunner:\r\n\r\n> $ export CASHER_DIR=$HOME/.casher\r\n> 0.10s $ Installing caching utilities\r\n> 0.96s attempting to download cache archive\r\n> found cache\r\n> 2.68s adding /home/travis/build/mykmelez/j2me.js/node_modules to cache\r\n> 2.67s adding /tmp/j2me.js to cache\r\n","created_at":"2015-01-13T01:41:01Z","updated_at":"2015-01-13T06:56:52Z","closed_at":"2015-01-13T06:56:52Z","merged_at":"2015-01-13T06:56:52Z","merge_commit_sha":"a221ef12de81cf2e5861e9f331b43527855fdc42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848/commits","review_comments_url":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848/comments","review_comment_url":"https://api.github.com/repos/andreasgal/j2me.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/andreasgal/j2me.js/issues/848/comments","statuses_url":"https://api.github.com/repos/andreasgal/j2me.js/statuses/d977c57700d56a27bbe22dc1edcb90a3c2c7ec92","head":{"label":"mykmelez:travis-cache","ref":"travis-cache","sha":"d977c57700d56a27bbe22dc1edcb90a3c2c7ec92","user":{"login":"mykmelez","id":305455,"avatar_url":"https://avatars.githubusercontent.com/u/305455?v=3","gravatar_id":"","url":"https://api.github.com/users/mykmelez","html_url":"https://github.com/mykmelez","followers_url":"https://api.github.com/users/mykmelez/followers","following_url":"https://api.github.com/users/mykmelez/following{/other_user}","gists_url":"https://api.github.com/users/mykmelez/gists{/gist_id}","starred_url":"https://api.github.com/users/mykmelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykmelez/subscriptions","organizations_url":"https://api.github.com/users/mykmelez/orgs","repos_url":"https://api.github.com/users/mykmelez/repos","events_url":"https://api.github.com/users/mykmelez/events{/privacy}","received_events_url":"https://api.github.com/users/mykmelez/received_events","type":"User","site_admin":false},"repo":{"id":22497156,"name":"j2me.js","full_name":"mykmelez/j2me.js","owner":{"login":"mykmelez","id":305455,"avatar_url":"https://avatars.githubusercontent.com/u/305455?v=3","gravatar_id":"","url":"https://api.github.com/users/mykmelez","html_url":"https://github.com/mykmelez","followers_url":"https://api.github.com/users/mykmelez/followers","following_url":"https://api.github.com/users/mykmelez/following{/other_user}","gists_url":"https://api.github.com/users/mykmelez/gists{/gist_id}","starred_url":"https://api.github.com/users/mykmelez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykmelez/subscriptions","organizations_url":"https://api.github.com/users/mykmelez/orgs","repos_url":"https://api.github.com/users/mykmelez/repos","events_url":"https://api.github.com/users/mykmelez/events{/privacy}","received_events_url":"https://api.github.com/users/mykmelez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mykmelez/j2me.js","description":"J2ME VM in JavaScript","fork":true,"url":"https://api.github.com/repos/mykmelez/j2me.js","forks_url":"https://api.github.com/repos/mykmelez/j2me.js/forks","keys_url":"https://api.github.com/repos/mykmelez/j2me.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mykmelez/j2me.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mykmelez/j2me.js/teams","hooks_url":"https://api.github.com/repos/mykmelez/j2me.js/hooks","issue_events_url":"https://api.github.com/repos/mykmelez/j2me.js/issues/events{/number}","events_url":"https://api.github.com/repos/mykmelez/j2me.js/events","assignees_url":"https://api.github.com/repos/mykmelez/j2me.js/assignees{/user}","branches_url":"https://api.github.com/repos/mykmelez/j2me.js/branches{/branch}","tags_url":"https://api.github.com/repos/mykmelez/j2me.js/tags","blobs_url":"https://api.github.com/repos/mykmelez/j2me.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mykmelez/j2me.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mykmelez/j2me.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/mykmelez/j2me.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mykmelez/j2me.js/statuses/{sha}","languages_url":"https://api.github.com/repos/mykmelez/j2me.js/languages","stargazers_url":"https://api.github.com/repos/mykmelez/j2me.js/stargazers","contributors_url":"https://api.github.com/repos/mykmelez/j2me.js/contributors","subscribers_url":"https://api.github.com/repos/mykmelez/j2me.js/subscribers","subscription_url":"https://api.github.com/repos/mykmelez/j2me.js/subscription","commits_url":"https://api.github.com/repos/mykmelez/j2me.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/mykmelez/j2me.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/mykmelez/j2me.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/mykmelez/j2me.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/mykmelez/j2me.js/contents/{+path}","compare_url":"https://api.github.com/repos/mykmelez/j2me.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mykmelez/j2me.js/merges","archive_url":"https://api.github.com/repos/mykmelez/j2me.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mykmelez/j2me.js/downloads","issues_url":"https://api.github.com/repos/mykmelez/j2me.js/issues{/number}","pulls_url":"https://api.github.com/repos/mykmelez/j2me.js/pulls{/number}","milestones_url":"https://api.github.com/repos/mykmelez/j2me.js/milestones{/number}","notifications_url":"https://api.github.com/repos/mykmelez/j2me.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mykmelez/j2me.js/labels{/name}","releases_url":"https://api.github.com/repos/mykmelez/j2me.js/releases{/id}","created_at":"2014-08-01T06:02:22Z","updated_at":"2015-01-13T01:08:38Z","pushed_at":"2015-01-13T01:49:21Z","git_url":"git://github.com/mykmelez/j2me.js.git","ssh_url":"git@github.com:mykmelez/j2me.js.git","clone_url":"https://github.com/mykmelez/j2me.js.git","svn_url":"https://github.com/mykmelez/j2me.js","homepage":null,"size":15202,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"andreasgal:master","ref":"master","sha":"47995f824cb1aabee737a0454b2daafba79c84b1","user":{"login":"andreasgal","id":313748,"avatar_url":"https://avatars.githubusercontent.com/u/313748?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasgal","html_url":"https://github.com/andreasgal","followers_url":"https://api.github.com/users/andreasgal/followers","following_url":"https://api.github.com/users/andreasgal/following{/other_user}","gists_url":"https://api.github.com/users/andreasgal/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasgal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasgal/subscriptions","organizations_url":"https://api.github.com/users/andreasgal/orgs","repos_url":"https://api.github.com/users/andreasgal/repos","events_url":"https://api.github.com/users/andreasgal/events{/privacy}","received_events_url":"https://api.github.com/users/andreasgal/received_events","type":"User","site_admin":false},"repo":{"id":21724513,"name":"j2me.js","full_name":"andreasgal/j2me.js","owner":{"login":"andreasgal","id":313748,"avatar_url":"https://avatars.githubusercontent.com/u/313748?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasgal","html_url":"https://github.com/andreasgal","followers_url":"https://api.github.com/users/andreasgal/followers","following_url":"https://api.github.com/users/andreasgal/following{/other_user}","gists_url":"https://api.github.com/users/andreasgal/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasgal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasgal/subscriptions","organizations_url":"https://api.github.com/users/andreasgal/orgs","repos_url":"https://api.github.com/users/andreasgal/repos","events_url":"https://api.github.com/users/andreasgal/events{/privacy}","received_events_url":"https://api.github.com/users/andreasgal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreasgal/j2me.js","description":"J2ME VM in JavaScript","fork":false,"url":"https://api.github.com/repos/andreasgal/j2me.js","forks_url":"https://api.github.com/repos/andreasgal/j2me.js/forks","keys_url":"https://api.github.com/repos/andreasgal/j2me.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreasgal/j2me.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreasgal/j2me.js/teams","hooks_url":"https://api.github.com/repos/andreasgal/j2me.js/hooks","issue_events_url":"https://api.github.com/repos/andreasgal/j2me.js/issues/events{/number}","events_url":"https://api.github.com/repos/andreasgal/j2me.js/events","assignees_url":"https://api.github.com/repos/andreasgal/j2me.js/assignees{/user}","branches_url":"https://api.github.com/repos/andreasgal/j2me.js/branches{/branch}","tags_url":"https://api.github.com/repos/andreasgal/j2me.js/tags","blobs_url":"https://api.github.com/repos/andreasgal/j2me.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreasgal/j2me.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreasgal/j2me.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreasgal/j2me.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreasgal/j2me.js/statuses/{sha}","languages_url":"https://api.github.com/repos/andreasgal/j2me.js/languages","stargazers_url":"https://api.github.com/repos/andreasgal/j2me.js/stargazers","contributors_url":"https://api.github.com/repos/andreasgal/j2me.js/contributors","subscribers_url":"https://api.github.com/repos/andreasgal/j2me.js/subscribers","subscription_url":"https://api.github.com/repos/andreasgal/j2me.js/subscription","commits_url":"https://api.github.com/repos/andreasgal/j2me.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreasgal/j2me.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreasgal/j2me.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreasgal/j2me.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/andreasgal/j2me.js/contents/{+path}","compare_url":"https://api.github.com/repos/andreasgal/j2me.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreasgal/j2me.js/merges","archive_url":"https://api.github.com/repos/andreasgal/j2me.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreasgal/j2me.js/downloads","issues_url":"https://api.github.com/repos/andreasgal/j2me.js/issues{/number}","pulls_url":"https://api.github.com/repos/andreasgal/j2me.js/pulls{/number}","milestones_url":"https://api.github.com/repos/andreasgal/j2me.js/milestones{/number}","notifications_url":"https://api.github.com/repos/andreasgal/j2me.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreasgal/j2me.js/labels{/name}","releases_url":"https://api.github.com/repos/andreasgal/j2me.js/releases{/id}","created_at":"2014-07-11T06:23:27Z","updated_at":"2015-01-13T00:30:40Z","pushed_at":"2015-01-13T06:56:52Z","git_url":"git://github.com/andreasgal/j2me.js.git","ssh_url":"git@github.com:andreasgal/j2me.js.git","clone_url":"https://github.com/andreasgal/j2me.js.git","svn_url":"https://github.com/andreasgal/j2me.js","homepage":null,"size":18596,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":119,"forks":14,"open_issues":119,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848"},"html":{"href":"https://github.com/andreasgal/j2me.js/pull/848"},"issue":{"href":"https://api.github.com/repos/andreasgal/j2me.js/issues/848"},"comments":{"href":"https://api.github.com/repos/andreasgal/j2me.js/issues/848/comments"},"review_comments":{"href":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848/comments"},"review_comment":{"href":"https://api.github.com/repos/andreasgal/j2me.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/andreasgal/j2me.js/pulls/848/commits"},"statuses":{"href":"https://api.github.com/repos/andreasgal/j2me.js/statuses/d977c57700d56a27bbe22dc1edcb90a3c2c7ec92"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yxl","id":1262683,"avatar_url":"https://avatars.githubusercontent.com/u/1262683?v=3","gravatar_id":"","url":"https://api.github.com/users/yxl","html_url":"https://github.com/yxl","followers_url":"https://api.github.com/users/yxl/followers","following_url":"https://api.github.com/users/yxl/following{/other_user}","gists_url":"https://api.github.com/users/yxl/gists{/gist_id}","starred_url":"https://api.github.com/users/yxl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxl/subscriptions","organizations_url":"https://api.github.com/users/yxl/orgs","repos_url":"https://api.github.com/users/yxl/repos","events_url":"https://api.github.com/users/yxl/events{/privacy}","received_events_url":"https://api.github.com/users/yxl/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":3,"additions":8,"deletions":4,"changed_files":1}}