-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
68 lines (54 loc) · 1.76 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
#! /usr/bin/make
SUB_BEAM="Beam"
SUB_CAMPAIGN="Campaign"
SUB_MAILER="Mailer"
SUB_SSO="Sso"
export TARGET_GOOS TARGET_GOARCH TARGET_SUFFIX
sniff:
cd $(SUB_BEAM) && make sniff
cd $(SUB_CAMPAIGN) && make sniff
cd $(SUB_MAILER) && make sniff
cd $(SUB_SSO) && make sniff
sniff-fix:
cd $(SUB_BEAM) && make sniff-fix
cd $(SUB_CAMPAIGN) && make sniff-fix
cd $(SUB_MAILER) && make sniff-fix
cd $(SUB_SSO) && make sniff-fix
composer-install:
composer install -d $(SUB_BEAM) --no-progress
composer install -d $(SUB_CAMPAIGN) --no-progress
composer install -d $(SUB_MAILER) --no-progress
composer install -d $(SUB_SSO) --no-progress
phpunit:
# Mailer test must run first, since they use migrations (which are later deleted by Laravel tests)
cd $(SUB_MAILER) && php bin/command.php migrate:migrate -vvv
cd $(SUB_MAILER) && vendor/bin/phpunit
# Beam and Campaign DBs are migrated automatically when running tests
cd $(SUB_BEAM) && vendor/bin/phpunit -vvv
cd $(SUB_CAMPAIGN) && vendor/bin/phpunit --configuration=phpunit_gitlab.xml
copy-env:
cd $(SUB_BEAM) && cp .env.example .env
cd $(SUB_CAMPAIGN) && cp .env.example .env
cd $(SUB_MAILER) && cp tests/.env.example tests/.env
cd $(SUB_MAILER) && cp tests/.env.example .env
cd $(SUB_MAILER) && cp app/config/config.test.neon app/config/config.local.neon
phpstan:
cd $(SUB_MAILER) && make phpstan
lint:
cd $(SUB_BEAM) && make lint
latte-lint:
cd $(SUB_MAILER) && make latte-lint
vet:
cd $(SUB_BEAM) && make vet
fixcs:
cd $(SUB_BEAM) && make fixcs
cd $(SUB_CAMPAIGN) && make fixcs
cd $(SUB_MAILER) && make fixcs
cd $(SUB_SSO) && make fixcs
syntax:
cd $(SUB_BEAM) && make syntax
cd $(SUB_CAMPAIGN) && make syntax
cd $(SUB_MAILER) && make syntax
cd $(SUB_SSO) && make syntax
docker-build:
cd $(SUB_BEAM) && make docker-build