forked from ezbuy/ezorm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 1018 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
all:
buildTpl:
go-bindata -nometadata -o tpl/bindata.go -ignore bindata.go -pkg tpl tpl
genexample: clean
go install
ezorm gen -i ./example/mssql_people/people_mssql.yaml -o ./example/mssql_people -p people --goPackage test
ezorm gen -i ./example/blog/blog.yaml -o ./example/blog -p blog --goPackage test
ezorm gen -i ./example/mysql_people/people.yaml -o ./example/mysql_people -p people --goPackage test
ezorm gen -i ./example/redis_people/people.yaml -o ./example/redis_people -p people --goPackage test
clean:
rm ./example/mssql_people/gen_*.go
rm ./example/blog/gen_*.go
rm ./example/mysql_people/gen_*.go
rm ./example/redis_people/gen_*.go
genmongo:
rm example/blog/gen_*.go
ezorm gen -i example/blog/blog.yaml -o example/blog -p blog --goPackage test
test: genexample testmssql testmongo testmysql
testmssql:
go test -v ./example/mssql_people/...
testmongo:
go test -v ./example/blog/...
testmysql:
go test -v ./example/mysql_people/...
testredis:
go test -v ./example/redis_people/...