forked from miniflux/v2
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBSDmakefile
More file actions
23 lines (19 loc) · 572 Bytes
/
BSDmakefile
File metadata and controls
23 lines (19 loc) · 572 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MAKECMD= ${MAKE} -f BSDmakefile
.PHONY: e2e kill-e2e clean-e2e clean-e2e-error
e2e:
dropdb --if-exists -U postgres miniflux_test
createdb -U postgres -O miniflux -E UTF-8 --locale en_US.UTF-8 \
-T template0 miniflux_test
go run ./cmd/api -local
go test -v -count=1 -tags e2e ${E2E_TEST_ARGS} ./internal/api || \
${MAKECMD} clean-e2e-error
${MAKECMD} clean-e2e
kill-e2e:
[ -f "e2e_api.pid" ]
kill `cat e2e_api.pid`
rm "e2e_api.pid"
clean-e2e: kill-e2e
[ "$$KEEP_LOG" ] || rm "e2e_api.log"
dropdb -U postgres miniflux_test
clean-e2e-error: kill-e2e
false