forked from leafo/lapis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 698 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 698 Bytes
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
.PHONY: test local build global watch lint test_db mysql_test_db clean
test:
busted spec
busted spec_postgres
busted spec_mysql
busted spec_openresty
local: build
luarocks make --force --local lapis-dev-1.rockspec
global: build
sudo luarocks make lapis-dev-1.rockspec
build:
moonc lapis
moonc spec_openresty/s2
moonc spec_mysql/models.moon
watch: build
moonc -w lapis
lint:
moonc lint_config.moon
moonc -l $$(find lapis | grep moon$$)
test_db:
-dropdb -U postgres lapis_test
createdb -U postgres lapis_test
mysql_test_db:
echo 'drop database if exists lapis_test' | mysql -u root
echo 'create database lapis_test' | mysql -u root
clean:
rm $$(find lapis/ | grep \.lua$$)