-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·32 lines (24 loc) · 941 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·32 lines (24 loc) · 941 Bytes
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
default: install
composer-install:
docker run --rm --interactive --tty \
--volume $(shell pwd)/app:/app \
composer install --ignore-platform-reqs --no-scripts --no-dev --optimize-autoloader
composer-update:
docker run --rm --interactive --tty \
--volume $(shell pwd)/app:/app \
composer update --ignore-platform-reqs --no-scripts --no-dev --optimize-autoloader
composer-update-test:
docker run --rm --interactive --tty \
--volume $(shell pwd)/app:/app \
composer update --ignore-platform-reqs
install: composer-install
install-db:
docker exec bark_php ./console.php initialise
install-tests: composer-update-test
run-tests:
docker exec -e POSTGRES_DATABASE="bark_tests" -e PHP_IDE_CONFIG="serverName=bark_php" bark_php ./console.php initialise
docker exec -e POSTGRES_DATABASE="bark_tests" -e PHP_IDE_CONFIG="serverName=bark_php" bark_php vendor/bin/phpunit tests
start:
docker-compose up
stop:
docker-compose down