-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.9 KB
/
test.yml
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
60
61
62
63
64
65
66
67
name: test
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.lisp }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-22.04
lisp:
- ccl
- sbcl
exclude:
- os: ubuntu-22.04
lisp: ccl
# run the job on every combination of "os" above
runs-on: ${{ matrix.os }}
steps:
- name: CCL environment variables
if: matrix.lisp == 'ccl'
run: |
echo -e "LISP=ccl64\nLOAD=--load\nEVAL=--eval\nQUIT=--eval \"(quit)\"" >> $GITHUB_ENV
- name: SBCL environment variables
if: matrix.lisp == 'sbcl'
run: |
echo -e "LISP=sbcl\nLOAD=--load\nEVAL=--eval\nQUIT=--quit" >> $GITHUB_ENV
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y sbcl
- name: Install MacOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew install sbcl clozure-cl
- uses: actions/checkout@v3
- name: Install Quicklisp
run: |
mkdir -p $HOME/.config/common-lisp/source-registry.conf.d
echo "(:TREE #P\"${{ github.workspace }}/\")" > $HOME/.config/common-lisp/source-registry.conf.d/clostrum.conf
curl -kLO https://beta.quicklisp.org/quicklisp.lisp
$LISP $LOAD quicklisp.lisp $EVAL "(quicklisp-quickstart:install)" $EVAL "(ql-util:without-prompting (ql:add-to-init-file))" $QUIT
$LISP $EVAL "(ql:quickload '(:clostrum-basic :clostrum-test))" $QUIT
- name: Run Regression Tests
run: |
$LISP $EVAL "(mapc #'asdf:load-system '(:clostrum-basic :clostrum-test))" $EVAL "(clostrum/test:run-tests-exit nil 'clostrum-basic:run-time-environment nil 'clostrum-basic:compilation-environment)"