forked from MikkCZ/pontoon-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.11 KB
/
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
53
54
55
56
export PATH := $(shell pwd)/scripts:$(PATH)
.PHONY: prepare
prepare:
yarn clean-install
.PHONY: build
build:
yarn build
yarn test
.PHONY: watch
watch:
yarn watch
.PHONY: codecov
codecov:
yarn codecov:upload
.PHONY: download_jq_and_build
download_jq_and_build:
curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o scripts/jq
chmod u+x scripts/jq
make build
.PHONY: prepare_in_docker
prepare_in_docker:
bash ./scripts/run-in-docker.sh make prepare
.PHONY: prepare_in_podman
prepare_in_podman:
bash ./scripts/run-in-podman.sh make prepare
.PHONY: build_in_docker
build_in_docker:
bash ./scripts/run-in-docker.sh make download_jq_and_build
.PHONY: build_in_podman
build_in_podman:
bash ./scripts/run-in-podman.sh make download_jq_and_build
.PHONY: watch_in_docker
watch_in_docker:
bash ./scripts/run-in-docker.sh make watch
.PHONY: watch_in_podman
watch_in_podman:
bash ./scripts/run-in-podman.sh make watch
.PHONY: codecov_in_docker
codecov_in_docker:
bash ./scripts/run-in-docker.sh make codecov
.PHONY: codecov_in_podman
codecov_in_podman:
bash ./scripts/run-in-podman.sh make codecov