forked from coopcycle/coopcycle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 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
install:
@printf "\e[0;32mCalculating cycling routes for Paris..\e[0m\n"
"$(MAKE)" osrm
@printf "\e[0;32mPopulating schema..\e[0m\n"
@docker-compose exec php php bin/console doctrine:schema:create --env=dev
@docker-compose exec php bin/demo --env=dev
@docker-compose exec php php bin/console doctrine:migrations:sync-metadata-storage
@docker-compose exec php php bin/console doctrine:migrations:version --no-interaction --quiet --add --all
osrm:
@docker-compose run --rm osrm wget --no-check-certificate https://coopcycle-assets.sfo2.digitaloceanspaces.com/osm/paris-france.osm.pbf -O /data/data.osm.pbf
@docker-compose run --rm osrm osrm-extract -p /opt/bicycle.lua /data/data.osm.pbf
@docker-compose run --rm osrm osrm-partition /data/data.osrm
@docker-compose run --rm osrm osrm-customize /data/data.osrm
phpunit:
@docker-compose exec php php bin/console doctrine:schema:update --env=test --force --no-interaction --quiet
@docker-compose exec php php vendor/bin/phpunit
behat:
@docker-compose exec php php vendor/bin/behat
mocha:
@docker-compose exec -e SYMFONY_ENV=test -e NODE_ENV=test nodejs /run-tests.sh
migrations-diff:
@docker-compose exec php php bin/console doctrine:migrations:diff --no-interaction
migrations-migrate:
@docker-compose exec php php bin/console doctrine:migrations:migrate
@docker-compose exec php php bin/console doctrine:schema:update --env=test --force --no-interaction
email-preview:
@docker-compose exec php php bin/console coopcycle:email:preview > /tmp/coopcycle_email_layout.html && open /tmp/coopcycle_email_layout.html
enable-xdebug:
@docker-compose exec php /usr/local/bin/enable-xdebug
@docker-compose restart php nginx
fresh:
@docker-compose down