-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
97 lines (68 loc) · 2.88 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
88
89
90
91
92
93
94
95
96
97
up: docker-up
down: docker-down
restart: docker-down docker-up
init: docker-down-clear docker-pull docker-build docker-up scpsc-init
init-no-cache: docker-down-clear docker-pull docker-build docker-up scpsc-init-no-cache
init-no-fixtures: docker-down-clear docker-pull docker-build docker-up scpsc-init-no-fixtures
test: scpsc-test
test-unit: scpsc-test-unit
test-func: scpsc-test-func
fixtures: scpsc-fixtures
fixtures-cache: scpsc-clear-cache scpsc-fixtures
init-no-net: docker-down-clear docker-build docker-up scpsc-init
docker-up:
docker-compose up -d
docker-down:
docker-compose down --remove-orphans
docker-down-clear:
docker-compose down -v --remove-orphans
docker-pull:
docker-compose pull
docker-build:
docker-compose build
scpsc-init: scpsc-composer-install scpsc-clear-cache scpsc-migrations scpsc-fixtures scpsc-generate-ssl-key
scpsc-init-no-cache: scpsc-composer-install scpsc-migrations scpsc-fixtures scpsc-generate-ssl-key
scpsc-init-no-fixtures: scpsc-composer-install scpsc-assets-install scpsc-migrations scpsc-generate-ssl-key
scpsc-composer-install:
docker-compose run --rm scpsc-php-cli composer install
# We temporarily increase the memory to ensure the entire script executes. This is for calling Composer through PHP with the full path.
scpsc-composer-install-memory:
docker-compose run --rm scpsc-php-cli php -d memory_limit=256M /bin/composer install
scpsc-assets-install:
docker-compose run --rm scpsc-node yarn install
scpsc-migrations:
docker-compose run --rm scpsc-php-cli php bin/console doctrine:migrations:migrate --no-interaction
scpsc-fixtures:
docker-compose run --rm scpsc-php-cli php bin/console doctrine:fixtures:load --no-interaction
scpsc-test:
docker-compose run --rm scpsc-php-cli php bin/phpunit
scpsc-test-unit:
docker-compose run --rm scpsc-php-cli php bin/phpunit --testsuite=unit
scpsc-test-func:
docker-compose run --rm scpsc-php-cli php bin/phpunit --testsuite=functional
scpsc-clear-cache:
docker-compose run --rm scpsc-php-cli php bin/console cache:clear
scpsc-clear-cache-memory-limit:
docker-compose run --rm scpsc-php-cli php -d memory_limit=256M bin/console cache:clear
scpsc-generate-ssl-key:
docker-compose run --rm scpsc-php-cli php bin/console lexik:jwt:generate-keypair --skip-if-exists
apidocs:
docker-compose run --rm scpsc-php-cli php bin/console api:docs
#make cli p="composer install"
cli:
docker-compose run --rm scpsc-php-cli $(p)
node:
docker-compose run --rm scpsc-node $(p)
devassets:
docker-compose run --rm scpsc-node yarn encore dev
prodassets:
docker-compose run --rm scpsc-node yarn encore production
git-recipe: gitreset gitpull
gitreset:
docker-compose run --rm scpsc-php-cli git reset HEAD --hard
gitpull:
docker-compose run --rm scpsc-php-cli git pull origin dev -r
rector:
docker-compose run --rm scpsc-php-cli vendor/bin/rector
rector-dry:
docker-compose run --rm scpsc-php-cli vendor/bin/rector --dry-run