-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (61 loc) · 2.39 KB
/
CI.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
68
69
70
71
72
73
74
75
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.lisp }}
strategy:
matrix:
lisp: [sbcl, ccl, ecl]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH
- name: Download implementation
env:
LISP: ${{ matrix.lisp }}
run: |
pwd
ls -l
bash <(curl -s https://raw.githubusercontent.com/digikar99/lisp-travis-lite/master/run.sh)
- name: Download download-dependencies
run: |
git clone https://github.com/digikar99/download-dependencies $HOME/quicklisp/local-projects/download-dependencies
- name: Download dependencies
run: |
cl --eval '(ql:quickload "download-dependencies")' \
--eval '(push "~/" ql:*local-project-directories*)' \
--eval '(in-package :download-dependencies)' \
--eval '(let ((*dependencies-home* (first ql:*local-project-directories*))) (ensure-system "polymorphic-functions"))'\
--eval '(ql:register-local-projects)'
ls -l ~/
- name: Lite - Run Tests
run: |
cl --eval '(progn
(push "~/" ql:*local-project-directories*)
(push :travis *features*)
(ql:quickload "polymorphic-functions-lite")
(asdf:test-system "polymorphic-functions-lite")
(uiop:quit 0))'
- name: Full - Compile Tests
run: |
cl --eval '(progn
(push "~/" ql:*local-project-directories*)
(print ql:*local-project-directories*)
(print (ql:where-is-system "polymorphic-functions"))
(push :travis *features*)
(ql:quickload "polymorphic-functions")
(uiop:quit 0))'
# Testing it on the second load confirms that functionalities do not
# solely eval-when compile-toplevel, and that they persist across multiple loads.
- name: Full - Run Tests
run: |
cl --eval '(progn
(push "~/" ql:*local-project-directories*)
(push :travis *features*)
(ql:quickload "polymorphic-functions")
(asdf:test-system "polymorphic-functions")
(uiop:quit 0))'