From c30c3f35bc8c8f5d18674eabcececd7a420ce535 Mon Sep 17 00:00:00 2001 From: XeroOl Date: Tue, 18 Jul 2023 23:57:41 -0500 Subject: [PATCH] attempt 1 to add ci to fennel-ls --- .build.yml | 13 +++++++++++++ Makefile | 11 ++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..41eb874 --- /dev/null +++ b/.build.yml @@ -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 diff --git a/Makefile b/Makefile index 8bad4a2..50fb3df 100644 --- a/Makefile +++ b/Makefile @@ -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)