-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 926 Bytes
/
Makefile
File metadata and controls
46 lines (37 loc) · 926 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
38
39
40
41
42
43
44
45
46
# Default host IP
HOST = 0.0.0.0
# Detect operating system in Makefile.
ifeq ($(OS),Windows_NT)
OSNAME = WIN32
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
OSNAME = LINUX
endif
ifeq ($(UNAME_S),Darwin)
OSNAME = OSX
# Mac OSX workaround
HOST = host.docker.internal
endif
endif
.PHONY: \
configure certs models action test doc release
.SILENT: \
configure certs models action test doc release
configure:
dart pub global activate pub_release
dart pub global activate critical_test
dart pub global activate dcli
dart pub global activate eventstore_client_test
certs:
esdbtcli certs --out test
models:
echo "Generating models..."; \
flutter pub run build_runner build --delete-conflicting-outputs; \
echo "[✓] Generating models complete."
test:
if [ ! -d test/certs ]; then esdbtcli certs --out test; fi
dart test -j 1
release:
echo 'Release to pub.dev...'
pub_release --no-test