X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=wolf;a=blobdiff_plain;f=bin%2Fbuildtravisexec.sh;fp=bin%2Fbuildtravisexec.sh;h=20480dabc1b5a0bdab135cb28318f233a971d34d;hp=0000000000000000000000000000000000000000;hb=88cc07a6e633f2e8921f47f935bf2428154369d6;hpb=fb2b62902f65524fab0e86a3555b0071a0983e02 diff --git a/bin/buildtravisexec.sh b/bin/buildtravisexec.sh new file mode 100755 index 0000000..20480da --- /dev/null +++ b/bin/buildtravisexec.sh @@ -0,0 +1,33 @@ +#!/bin/bash -e + +mkdir -p tmp/sbcl + +cwd=$PWD +( cd tmp && + tar jxf ../deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 && + cd sbcl-1.2.6-x86-64-linux/ && + SBCL_HOME="" INSTALL_ROOT=$cwd/tmp/sbcl/ bash install.sh ) + +mkdir -p tmp/deps/ + +( cd tmp/deps && + tar zxf ../../deps/tarpit/cl-ppcre.tar.gz && + ln -s cl-ppcre-2.0.10/cl-ppcre.asd . +) + + +SBCL_HOME="" tmp/sbcl/bin/sbcl --core tmp/sbcl/lib/sbcl/sbcl.core --no-sysinit --no-userinit \ + --eval "(require 'asdf)" \ + --eval '(setf asdf:*central-registry* (list #p"tmp/deps/"))' \ + --eval "(asdf:load-system :cl-ppcre)" \ + --eval "(asdf:clear-output-translations)" \ + --eval '(sb-ext:save-lisp-and-die "travissbcl" :executable t)' \ + +chmod +x travissbcl +travisname=travissbcl-$(git rev-parse --short HEAD) +mv travissbcl $travisname + +echo "You should upload via the command: scp $travisname nami:/opt/travis/sbcls/style-checker/" +echo "You should also set travisname in .travis.yml to $travisname" + +rm -rf tmp