-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (32 loc) · 921 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
44
45
46
47
48
49
50
51
52
.SILENT:
.PHONY: nodejs/* ethereum/* react-native/*
define dc-run
docker-compose run --rm
endef
build:
docker-compose build
nodejs/test:
$(dc-run) nodejs npm run test
nodejs/test/acceptance/watch:
$(dc-run) nodejs npm run test:acceptance:watch
scala/test:
$(dc-run) scala sbt test
scala/test/watch:
$(dc-run) scala sbt test-watch
ethereum/console:
$(dc-run) ethereum npm run console
ethereum/migrate:
$(dc-run) ethereum npm run migrate
ethereum/test:
$(dc-run) ethereum npm run test
ethereum/test/watch:
$(dc-run) ethereum npm run test:watch
react/build:
$(dc-run) react npm run build
react-native/start:
$(eval host_ip ?= $(shell ifconfig | grep 'inet\s' | grep -Fv '127.0.0.1' | awk 'NR==1{print $$2}'))
HOST_IP=$(host_ip) $(dc-run) --service-ports react-native
react-native/test:
$(dc-run) react-native npm run test
react-native/test/watch:
$(dc-run) react-native npm run test:watch