attempt 1 to add ci to fennel-ls

This commit is contained in:
XeroOl 2023-07-18 23:57:41 -05:00
parent 3c2bc8c35c
commit c30c3f35bc
2 changed files with 23 additions and 1 deletions

13
.build.yml Normal file
View File

@ -0,0 +1,13 @@
image: debian/sid
packages:
- make
- lua5.1
- lua5.2
- lua5.3
- lua5.4
- luajit2
sources:
- https://git.sr.ht/~xerool/fennel-ls
tasks:
- build: |
make ci

View File

@ -10,7 +10,7 @@ DESTDIR ?=
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
.PHONY: clean test install
.PHONY: clean test install ci
all: $(EXE)
@ -28,5 +28,14 @@ test:
TESTING=1 LUA_PATH="./src/?.lua;./?.lua" FENNEL_PATH="./src/?.fnl;./?.fnl" \
$(FENNEL) test/init.fnl
testall:
$(MAKE) test LUA=lua5.1
$(MAKE) test LUA=lua5.2
$(MAKE) test LUA=lua5.3
$(MAKE) test LUA=lua5.4
$(MAKE) test LUA=luajit
install: $(EXE)
mkdir -p $(DESTDIR)$(BINDIR) && cp $< $(DESTDIR)$(BINDIR)/
ci: testall $(EXE)