{"action":"created","comment":{"url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/comments/37793629","id":37793629,"diff_hunk":"@@ -0,0 +1,102 @@\n+require 'tempfile'\n+\n+module Travis\n+  module Build\n+    class Script\n+      class Lisp < Script\n+        DEFAULTS = {\n+          lisp: 'sbcl'\n+        }\n+\n+        CIM_URL = \"https://raw.githubusercontent.com/KeenS/CIM/master/scripts/cim_installer\"\n+        CIM_HOME = \"$HOME/cim\"\n+\n+        QL_URL = \"https://beta.quicklisp.org/quicklisp.lisp\"\n+        ASDF_URL= \"https://common-lisp.net/project/asdf/asdf.lisp\"\n+        ASDF_CONF_DIR = \"$HOME/.config/common-lisp/source-registry.d\"\n+        ASDF_CONF_FILE = ASDF_CONF_DIR + \"/travis.conf\"\n+\n+        SYSTEM_MISSING = 'No test system or test script provided. ' +\n+                         'Please either override the script: key ' +\n+                         'or use the system: key to set a test (asdf) system.'\n+\n+        def configure\n+          sh.cmd 'sudo apt-get update'\n+          sh.cmd 'sudo apt-get install libc6:i386 libc6-dev libc6-dev-i386 libffi-dev libffi-dev:i386'\n+        end\n+\n+        def export\n+          super\n+          sh.export 'CIM_HOME', CIM_HOME\n+          sh.export 'PATH', \"#{path}:$PATH\"\n+        end\n+\n+        def setup\n+          super\n+          install_cim\n+          install_implementation config[:lisp]\n+          install_asdf\n+          install_quicklisp\n+        end\n+\n+        def script\n+          if config.has_key?(:system)\n+            system_keyword = \":\" + config[:system]\n+            sh.cmd \"cl -e '(ql:quickload #{system_keyword})' \"\\\n+                   \"-e (unless (asdf:test-system #{system_keyword}) \" +","path":"lib/travis/build/script/lisp.rb","position":46,"original_position":46,"commit_id":"97dd5c2f913fdd6bace2a3c11c37f7f2dd90e70d","original_commit_id":"97dd5c2f913fdd6bace2a3c11c37f7f2dd90e70d","user":{"login":"tmccombs","id":2541726,"avatar_url":"https://avatars.githubusercontent.com/u/2541726?v=3","gravatar_id":"","url":"https://api.github.com/users/tmccombs","html_url":"https://github.com/tmccombs","followers_url":"https://api.github.com/users/tmccombs/followers","following_url":"https://api.github.com/users/tmccombs/following{/other_user}","gists_url":"https://api.github.com/users/tmccombs/gists{/gist_id}","starred_url":"https://api.github.com/users/tmccombs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmccombs/subscriptions","organizations_url":"https://api.github.com/users/tmccombs/orgs","repos_url":"https://api.github.com/users/tmccombs/repos","events_url":"https://api.github.com/users/tmccombs/events{/privacy}","received_events_url":"https://api.github.com/users/tmccombs/received_events","type":"User","site_admin":false},"body":"That's unfortunate is there any way to tell if it failed in a framework\nindependent way?\n\nOn 03:00, Sun, Aug 23, 2015 Joram Schrijver <notifications@github.com>\nwrote:\n\n> In lib/travis/build/script/lisp.rb\n> <https://github.com/lisp-travis/travis-build/pull/1#discussion_r37704484>:\n>\n> > +          sh.export 'PATH', \"#{path}:$PATH\"\n> > +        end\n> > +\n> > +        def setup\n> > +          super\n> > +          install_cim\n> > +          install_implementation config[:lisp]\n> > +          install_asdf\n> > +          install_quicklisp\n> > +        end\n> > +\n> > +        def script\n> > +          if config.has_key?(:system)\n> > +            system_keyword = \":\" + config[:system]\n> > +            sh.cmd \"cl -e '(ql:quickload #{system_keyword})' \"\\\n> > +                   \"-e (unless (asdf:test-system #{system_keyword}) \" +\n>\n> ASDF:TEST-SYSTEM doesn't have a useful return value. It basically always\n> returns T, so this way builds won't actually fail.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/lisp-travis/travis-build/pull/1/files#r37704484>.\n>\n","created_at":"2015-08-24T19:30:29Z","updated_at":"2015-08-24T19:30:29Z","html_url":"https://github.com/lisp-travis/travis-build/pull/1#discussion_r37793629","pull_request_url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/comments/37793629"},"html":{"href":"https://github.com/lisp-travis/travis-build/pull/1#discussion_r37793629"},"pull_request":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1","id":41475245,"html_url":"https://github.com/lisp-travis/travis-build/pull/1","diff_url":"https://github.com/lisp-travis/travis-build/pull/1.diff","patch_url":"https://github.com/lisp-travis/travis-build/pull/1.patch","issue_url":"https://api.github.com/repos/lisp-travis/travis-build/issues/1","number":1,"state":"open","locked":false,"title":"Add support for lisp","user":{"login":"tmccombs","id":2541726,"avatar_url":"https://avatars.githubusercontent.com/u/2541726?v=3","gravatar_id":"","url":"https://api.github.com/users/tmccombs","html_url":"https://github.com/tmccombs","followers_url":"https://api.github.com/users/tmccombs/followers","following_url":"https://api.github.com/users/tmccombs/following{/other_user}","gists_url":"https://api.github.com/users/tmccombs/gists{/gist_id}","starred_url":"https://api.github.com/users/tmccombs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmccombs/subscriptions","organizations_url":"https://api.github.com/users/tmccombs/orgs","repos_url":"https://api.github.com/users/tmccombs/repos","events_url":"https://api.github.com/users/tmccombs/events{/privacy}","received_events_url":"https://api.github.com/users/tmccombs/received_events","type":"User","site_admin":false},"body":"Here is an initial implementation for travis-build. It probably still needs some polish, and I can't figure out how to test actually running the generated script, but this should be a good starting point.\r\n\r\nWhen I try running the script it isn't able to clone the repository, because it is just using the username/repo for the repository instead of the full github url. I'm not sure where the full url is supposed to come from.","created_at":"2015-08-03T14:55:28Z","updated_at":"2015-08-24T19:30:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9274702a934e97b28597db46f5017c06361327d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lisp-travis/travis-build/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lisp-travis/travis-build/issues/1/comments","statuses_url":"https://api.github.com/repos/lisp-travis/travis-build/statuses/97dd5c2f913fdd6bace2a3c11c37f7f2dd90e70d","head":{"label":"tmccombs:add-lisp-script","ref":"add-lisp-script","sha":"97dd5c2f913fdd6bace2a3c11c37f7f2dd90e70d","user":{"login":"tmccombs","id":2541726,"avatar_url":"https://avatars.githubusercontent.com/u/2541726?v=3","gravatar_id":"","url":"https://api.github.com/users/tmccombs","html_url":"https://github.com/tmccombs","followers_url":"https://api.github.com/users/tmccombs/followers","following_url":"https://api.github.com/users/tmccombs/following{/other_user}","gists_url":"https://api.github.com/users/tmccombs/gists{/gist_id}","starred_url":"https://api.github.com/users/tmccombs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmccombs/subscriptions","organizations_url":"https://api.github.com/users/tmccombs/orgs","repos_url":"https://api.github.com/users/tmccombs/repos","events_url":"https://api.github.com/users/tmccombs/events{/privacy}","received_events_url":"https://api.github.com/users/tmccombs/received_events","type":"User","site_admin":false},"repo":{"id":40034253,"name":"travis-build","full_name":"tmccombs/travis-build","owner":{"login":"tmccombs","id":2541726,"avatar_url":"https://avatars.githubusercontent.com/u/2541726?v=3","gravatar_id":"","url":"https://api.github.com/users/tmccombs","html_url":"https://github.com/tmccombs","followers_url":"https://api.github.com/users/tmccombs/followers","following_url":"https://api.github.com/users/tmccombs/following{/other_user}","gists_url":"https://api.github.com/users/tmccombs/gists{/gist_id}","starred_url":"https://api.github.com/users/tmccombs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmccombs/subscriptions","organizations_url":"https://api.github.com/users/tmccombs/orgs","repos_url":"https://api.github.com/users/tmccombs/repos","events_url":"https://api.github.com/users/tmccombs/events{/privacy}","received_events_url":"https://api.github.com/users/tmccombs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmccombs/travis-build","description":".travis.yml => build.sh converter","fork":true,"url":"https://api.github.com/repos/tmccombs/travis-build","forks_url":"https://api.github.com/repos/tmccombs/travis-build/forks","keys_url":"https://api.github.com/repos/tmccombs/travis-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmccombs/travis-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmccombs/travis-build/teams","hooks_url":"https://api.github.com/repos/tmccombs/travis-build/hooks","issue_events_url":"https://api.github.com/repos/tmccombs/travis-build/issues/events{/number}","events_url":"https://api.github.com/repos/tmccombs/travis-build/events","assignees_url":"https://api.github.com/repos/tmccombs/travis-build/assignees{/user}","branches_url":"https://api.github.com/repos/tmccombs/travis-build/branches{/branch}","tags_url":"https://api.github.com/repos/tmccombs/travis-build/tags","blobs_url":"https://api.github.com/repos/tmccombs/travis-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmccombs/travis-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmccombs/travis-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmccombs/travis-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmccombs/travis-build/statuses/{sha}","languages_url":"https://api.github.com/repos/tmccombs/travis-build/languages","stargazers_url":"https://api.github.com/repos/tmccombs/travis-build/stargazers","contributors_url":"https://api.github.com/repos/tmccombs/travis-build/contributors","subscribers_url":"https://api.github.com/repos/tmccombs/travis-build/subscribers","subscription_url":"https://api.github.com/repos/tmccombs/travis-build/subscription","commits_url":"https://api.github.com/repos/tmccombs/travis-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmccombs/travis-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmccombs/travis-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmccombs/travis-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmccombs/travis-build/contents/{+path}","compare_url":"https://api.github.com/repos/tmccombs/travis-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmccombs/travis-build/merges","archive_url":"https://api.github.com/repos/tmccombs/travis-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmccombs/travis-build/downloads","issues_url":"https://api.github.com/repos/tmccombs/travis-build/issues{/number}","pulls_url":"https://api.github.com/repos/tmccombs/travis-build/pulls{/number}","milestones_url":"https://api.github.com/repos/tmccombs/travis-build/milestones{/number}","notifications_url":"https://api.github.com/repos/tmccombs/travis-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmccombs/travis-build/labels{/name}","releases_url":"https://api.github.com/repos/tmccombs/travis-build/releases{/id}","created_at":"2015-08-01T03:39:59Z","updated_at":"2015-08-01T03:40:00Z","pushed_at":"2015-08-06T03:42:26Z","git_url":"git://github.com/tmccombs/travis-build.git","ssh_url":"git@github.com:tmccombs/travis-build.git","clone_url":"https://github.com/tmccombs/travis-build.git","svn_url":"https://github.com/tmccombs/travis-build","homepage":"","size":3465,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"lisp-travis:master","ref":"master","sha":"940fd45e714dc664554ecd546d0254f49717b123","user":{"login":"lisp-travis","id":13535907,"avatar_url":"https://avatars.githubusercontent.com/u/13535907?v=3","gravatar_id":"","url":"https://api.github.com/users/lisp-travis","html_url":"https://github.com/lisp-travis","followers_url":"https://api.github.com/users/lisp-travis/followers","following_url":"https://api.github.com/users/lisp-travis/following{/other_user}","gists_url":"https://api.github.com/users/lisp-travis/gists{/gist_id}","starred_url":"https://api.github.com/users/lisp-travis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisp-travis/subscriptions","organizations_url":"https://api.github.com/users/lisp-travis/orgs","repos_url":"https://api.github.com/users/lisp-travis/repos","events_url":"https://api.github.com/users/lisp-travis/events{/privacy}","received_events_url":"https://api.github.com/users/lisp-travis/received_events","type":"Organization","site_admin":false},"repo":{"id":39823745,"name":"travis-build","full_name":"lisp-travis/travis-build","owner":{"login":"lisp-travis","id":13535907,"avatar_url":"https://avatars.githubusercontent.com/u/13535907?v=3","gravatar_id":"","url":"https://api.github.com/users/lisp-travis","html_url":"https://github.com/lisp-travis","followers_url":"https://api.github.com/users/lisp-travis/followers","following_url":"https://api.github.com/users/lisp-travis/following{/other_user}","gists_url":"https://api.github.com/users/lisp-travis/gists{/gist_id}","starred_url":"https://api.github.com/users/lisp-travis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisp-travis/subscriptions","organizations_url":"https://api.github.com/users/lisp-travis/orgs","repos_url":"https://api.github.com/users/lisp-travis/repos","events_url":"https://api.github.com/users/lisp-travis/events{/privacy}","received_events_url":"https://api.github.com/users/lisp-travis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lisp-travis/travis-build","description":".travis.yml => build.sh converter","fork":true,"url":"https://api.github.com/repos/lisp-travis/travis-build","forks_url":"https://api.github.com/repos/lisp-travis/travis-build/forks","keys_url":"https://api.github.com/repos/lisp-travis/travis-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lisp-travis/travis-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lisp-travis/travis-build/teams","hooks_url":"https://api.github.com/repos/lisp-travis/travis-build/hooks","issue_events_url":"https://api.github.com/repos/lisp-travis/travis-build/issues/events{/number}","events_url":"https://api.github.com/repos/lisp-travis/travis-build/events","assignees_url":"https://api.github.com/repos/lisp-travis/travis-build/assignees{/user}","branches_url":"https://api.github.com/repos/lisp-travis/travis-build/branches{/branch}","tags_url":"https://api.github.com/repos/lisp-travis/travis-build/tags","blobs_url":"https://api.github.com/repos/lisp-travis/travis-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lisp-travis/travis-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lisp-travis/travis-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/lisp-travis/travis-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lisp-travis/travis-build/statuses/{sha}","languages_url":"https://api.github.com/repos/lisp-travis/travis-build/languages","stargazers_url":"https://api.github.com/repos/lisp-travis/travis-build/stargazers","contributors_url":"https://api.github.com/repos/lisp-travis/travis-build/contributors","subscribers_url":"https://api.github.com/repos/lisp-travis/travis-build/subscribers","subscription_url":"https://api.github.com/repos/lisp-travis/travis-build/subscription","commits_url":"https://api.github.com/repos/lisp-travis/travis-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/lisp-travis/travis-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/lisp-travis/travis-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/lisp-travis/travis-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/lisp-travis/travis-build/contents/{+path}","compare_url":"https://api.github.com/repos/lisp-travis/travis-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lisp-travis/travis-build/merges","archive_url":"https://api.github.com/repos/lisp-travis/travis-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lisp-travis/travis-build/downloads","issues_url":"https://api.github.com/repos/lisp-travis/travis-build/issues{/number}","pulls_url":"https://api.github.com/repos/lisp-travis/travis-build/pulls{/number}","milestones_url":"https://api.github.com/repos/lisp-travis/travis-build/milestones{/number}","notifications_url":"https://api.github.com/repos/lisp-travis/travis-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lisp-travis/travis-build/labels{/name}","releases_url":"https://api.github.com/repos/lisp-travis/travis-build/releases{/id}","created_at":"2015-07-28T09:03:08Z","updated_at":"2015-07-29T14:43:11Z","pushed_at":"2015-08-06T03:42:26Z","git_url":"git://github.com/lisp-travis/travis-build.git","ssh_url":"git@github.com:lisp-travis/travis-build.git","clone_url":"https://github.com/lisp-travis/travis-build.git","svn_url":"https://github.com/lisp-travis/travis-build","homepage":"","size":3542,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1"},"html":{"href":"https://github.com/lisp-travis/travis-build/pull/1"},"issue":{"href":"https://api.github.com/repos/lisp-travis/travis-build/issues/1"},"comments":{"href":"https://api.github.com/repos/lisp-travis/travis-build/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lisp-travis/travis-build/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lisp-travis/travis-build/statuses/97dd5c2f913fdd6bace2a3c11c37f7f2dd90e70d"}}}}