-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
87 lines (63 loc) · 1.68 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#! /usr/bin/make
SUB_TRACKER="go/cmd/tracker"
SUB_SEGMENTS="go/cmd/segments"
PHP_FOLDERS=app config
export TARGET_GOOS TARGET_GOARCH TARGET_SUFFIX
clear:
@cd $(SUB_TRACKER) && make clear
@cd $(SUB_SEGMENTS) && make clear
lint-lib:
@set -e; \
for package in $$(go list ./... | grep -vE '(/vendor|/cmd)'); \
do golint -set_exit_status=true $$package; done
lint: lint-lib
@cd $(SUB_TRACKER) && make lint
@cd $(SUB_SEGMENTS) && make lint
vet-lib:
@go vet $$(go list go/... | grep -vE '(/vendor|/cmd)')
vet: vet-lib
@cd $(SUB_TRACKER) && make vet
@cd $(SUB_SEGMENTS) && make vet
js-link-remp:
yarn link "../Package/remp" --relative
js:
make js-link-remp
yarn install
yarn all-production
js-dev:
make js-link-remp
yarn install
yarn all-dev
js-watch:
make js-link-remp
yarn install
yarn all-watch
build:
@cd $(SUB_TRACKER) && make build
@cd $(SUB_SEGMENTS) && make build
build-only:
@cd $(SUB_TRACKER) && make build-only
@cd $(SUB_SEGMENTS) && make build-only
build-simple: clear gen-only build-only
pr: clear build lint vet test-only
docker-build:
@cd $(SUB_TRACKER) && make docker-build
@cd $(SUB_SEGMENTS) && make docker-build
sniff:
php vendor/bin/phpcs --standard=PSR2 ${PHP_FOLDERS} -n -p
sniff_fix:
php vendor/bin/phpcbf --standard=PSR2 ${PHP_FOLDERS} -n
fixcs:
php vendor/bin/php-cs-fixer fix --config=.php_cs -v
syntax:
find ${PHP_FOLDERS} -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
composer-install-dev:
composer install
composer-install:
composer install --optimize-autoloader --no-dev
update-dev: composer-install-dev js-dev
php artisan migrate
update-prod: composer-install js
php artisan migrate --force
php artisan config:cache
php artisan route:cache