20480dabc1b5a0bdab135cb28318f233a971d34d
[wolf] / bin / buildtravisexec.sh
1 #!/bin/bash -e
2
3 mkdir -p tmp/sbcl
4
5 cwd=$PWD
6 ( cd tmp &&
7   tar jxf ../deps/tarpit/sbcl-1.2.6-x86-64-linux-binary.tar.bz2 &&
8   cd sbcl-1.2.6-x86-64-linux/ &&
9   SBCL_HOME="" INSTALL_ROOT=$cwd/tmp/sbcl/ bash install.sh )
10
11 mkdir -p tmp/deps/
12
13 ( cd tmp/deps &&
14   tar zxf ../../deps/tarpit/cl-ppcre.tar.gz &&
15   ln -s cl-ppcre-2.0.10/cl-ppcre.asd .
16 )
17
18
19 SBCL_HOME="" tmp/sbcl/bin/sbcl --core tmp/sbcl/lib/sbcl/sbcl.core --no-sysinit --no-userinit \
20   --eval "(require 'asdf)" \
21   --eval '(setf asdf:*central-registry* (list #p"tmp/deps/"))' \
22   --eval "(asdf:load-system :cl-ppcre)" \
23   --eval "(asdf:clear-output-translations)" \
24   --eval '(sb-ext:save-lisp-and-die "travissbcl" :executable t)' \
25
26 chmod +x travissbcl
27 travisname=travissbcl-$(git rev-parse --short HEAD)
28 mv travissbcl $travisname
29
30 echo "You should upload via the command: scp $travisname nami:/opt/travis/sbcls/style-checker/"
31 echo "You should also set travisname in .travis.yml to $travisname"
32
33 rm -rf tmp