-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrun-travis.sh
executable file
·59 lines (41 loc) · 1.61 KB
/
run-travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
#### parameters
SBCL_VER=1.2.6
SBCL_ARCH=x86-64-linux
SBCL_NAME="sbcl-${SBCL_VER}-${SBCL_ARCH}"
SBCL_URL="http://prdownloads.sourceforge.net/sbcl/${SBCL_NAME}-binary.tar.bz2"
LOCAL_LISP_TREE=${HOME}/common-lisp
QL_HOME=${HOME}/quicklisp
#### shell environment
set -ev
export SBCL_HOME="${HOME}/lib/sbcl"
export PATH="${HOME}/bin${PATH:+:}${PATH}"
export CL_SOURCE_REGISTRY="${TRAVIS_BUILD_DIR}//:${LOCAL_LISP_TREE}//:${CL_SOURCE_REGISTRY}"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_RUNTIME_DIR="${HOME}"
mkdir -m 0700 -p "$XDG_DATA_HOME" "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME"
export DISPLAY=":99.0" # cf. travis.yml
alias curl='curl -# -L'
alias sbcl='sbcl --noinform --no-sysinit --no-userinit --disable-debugger'
#### install system deps
sudo apt-get install python-software-properties
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu utopic main universe" -y
sudo apt-get update -yy
sudo apt-get install libgtk-3.0 libwebkit2gtk-3.0-dev
#### bootstrap SBCL
curl "${SBCL_URL}?use_mirror=autoselect" -o "${SBCL_NAME}.tar.bz2"
bzip2 -dc "${SBCL_NAME}.tar.bz2" | tar -xf -
(cd "$SBCL_NAME" && INSTALL_ROOT="$HOME" sh ./install.sh)
#### bootstrap quicklisp
curl http://beta.quicklisp.org/quicklisp.lisp -o ./quicklisp.lisp
sbcl --load ./quicklisp.lisp --eval '(quicklisp-quickstart:install)' --quit
#### install lisp dependencies
mkdir -p "$LOCAL_LISP_TREE"
git clone https://github.com/joachifm/cl-webkit.git ${LOCAL_LISP_TREE}/cl-webkit
cd ${LOCAL_LISP_TREE}/cl-webkit
git checkout c0c0a4
cd -
#### run
make test