-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
43 lines (32 loc) · 990 Bytes
/
Makefile
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
all: lint test
lint:
docker-compose run --rm app luacheck .
build:
docker build -t saksmlz/openresty-testsuite:latest -f Dockerfile .
docker build -t saksmlz/lua51-testsuite:latest -f Dockerfile-lua51 .
push_images:
docker push saksmlz/openresty-testsuite:latest
docker push saksmlz/lua51-testsuite:latest
test: test_openresty test_luajit test_lua51 test_luajit_integrational
test_openresty:
@echo OPENRESTY:
@docker-compose run --rm app resty-busted spec
test_luajit:
@echo LUAJIT:
@docker-compose run --rm app busted spec
test_luajit_integrational:
@echo LUAJIT INTEGRATIONAL:
@docker-compose run --rm app bin/test_with_expect
test_lua51:
@echo LUA5.1:
@docker-compose run --rm lua51 bin/lua51test
shell:
docker-compose run --rm app
repl:
@docker-compose run --rm app \
resty \
-I lib/ \
-I vendor/ \
-e 'require("resty.repl").start()'
.PHONY: lint test shell repl build push_images test_openresty \
test_luajit test_lua51 test_with_expect