-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
32 lines (27 loc) · 975 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
.PHONY: build local prepare test
build: prepare test
local:
rm -rf build
mkdir -p build/coverage
mkdir -p build/logs
php bin/console doctrine:database:create --env=test --if-not-exists
php bin/console doctrine:schema:create --env=test
php bin/console doctrine:fixtures:load --env=test -n
php bin/console cache:clear --env=test
prepare:
rm -rf var/cache/*
rm -rf build
mkdir -p build/coverage
mkdir -p build/logs
composer install --no-interaction -o --prefer-dist
php bin/console doctrine:database:create --env=test --if-not-exists
php bin/console doctrine:schema:drop --force --env=test
php bin/console doctrine:schema:create --env=test
php bin/console doctrine:fixtures:load --env=test -n
php bin/console cache:clear --env=test
test:
php bin/simple-phpunit --coverage-html coverage
reset:
php bin/console doctrine:schema:drop --force --env=test
php bin/console doctrine:schema:create --env=test
php bin/console doctrine:fixtures:load --env=test -n