Skip to content

Commit 2434479

Browse files
committed
refactor: move all scripts to scripts/ folder
1 parent 9c5345d commit 2434479

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY web web
55
COPY t t
66
COPY src src
77
COPY lisp-inference.asd .
8-
COPY *.lisp .
8+
COPY scripts scripts
99
RUN ros install ./lisp-inference.asd
1010
RUN ros run -s lisp-inference/web -q
1111
EXPOSE 40000

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SBCL_CMD := sbcl --noinform --disable-debugger --load
1+
SBCL_CMD := sbcl --noinform --disable-debugger --load scripts/fix-quicklisp.lisp --load
22
OBJECTS := lisp-inference
33
DOCKER_IMG = lisp-inference
44
VERSION := latest
@@ -8,23 +8,23 @@ all: $(OBJECTS)
88

99

1010
$(OBJECTS): src/*.lisp
11-
$(SBCL_CMD) build.lisp
11+
$(SBCL_CMD) scripts/build.lisp
1212

1313

1414
check:
15-
@$(SBCL_CMD) run-test.lisp
15+
@$(SBCL_CMD) scripts/run-test.lisp
1616

1717

1818
server:
19-
@$(SBCL_CMD) run-server.lisp
19+
@$(SBCL_CMD) scripts/run-server.lisp
2020

2121
docs-worktree:
2222
@if [ ! -d docs ]; then \
2323
git worktree add docs gh-pages -f; \
2424
fi
2525

2626
docs: docs-worktree
27-
@$(SBCL_CMD) run-docs.lisp
27+
@$(SBCL_CMD) scripts/run-docs.lisp
2828

2929
docs-publish:
3030
cd docs/ && git add . && git commit -m "Auto-generated commit from make docs-publish" && git push || true
@@ -39,10 +39,13 @@ docker-run: docker-build
3939
docker run --rm -it --network=host $(DOCKER_IMG)
4040

4141
docker-docs: docker-build docs-worktree
42-
docker run --rm -t -v $(PWD)/docs:/root/.roswell/local-projects/local/lisp-inference/docs --entrypoint=ros $(DOCKER_IMG) run -l run-docs.lisp
42+
docker run --rm -t \
43+
-v $(PWD)/docs:/root/.roswell/local-projects/local/lisp-inference/docs \
44+
--entrypoint=ros $(DOCKER_IMG) \
45+
run -l scripts/fix-quicklisp.lisp -l run-docs.lisp
4346

4447
docker-check: docker-build
45-
docker run --rm -t --entrypoint=ros $(DOCKER_IMG) run -l run-test.lisp
48+
docker run --rm -t --entrypoint=ros $(DOCKER_IMG) run -l scripts/fix-quicklisp.lisp -l scripts/run-test.lisp
4649

4750
docker-publish: docker-build
4851
docker tag $(DOCKER_IMG) $(PUBLIC_IMG)

build.lisp renamed to scripts/build.lisp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
(load "fix-quicklisp")
21
(ql:quickload :prove)
32
(ql:quickload :lisp-inference)
43
(in-package :lisp-inference)
File renamed without changes.

run-docs.lisp renamed to scripts/run-docs.lisp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
(load "fix-quicklisp")
21
;; auto generate docs with staple
32
(ql:quickload '(:staple :lisp-inference :lisp-inference/tests :lisp-inference/web) :silent t)
43

run-server.lisp renamed to scripts/run-server.lisp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
(load "fix-quicklisp")
21
(ql:quickload :lisp-inference/web)
32
(webapp:start)
43
(loop do

run-test.lisp renamed to scripts/run-test.lisp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
(load "fix-quicklisp")
21
(ql:quickload :lisp-inference/tests :silent t)
32

43
(defun rove/utils/reporter::print-source-location-as-file-path (stream file line column)

0 commit comments

Comments
 (0)