forked from coopcycle/coopcycle-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (28 loc) · 1.52 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
install:
@printf "\e[0;32mGenerating RSA key to encrypt webtokens..\e[0m\n"
@mkdir -p var/jwt
@openssl genrsa -out var/jwt/private.pem -passout pass:coursiers -aes256 4096;
@openssl rsa -pubout -passin pass:coursiers -in var/jwt/private.pem -out var/jwt/public.pem
@printf "\e[0;32mCalculating cycling routes for Paris..\e[0m\n"
@mkdir -p var/osrm
@wget https://s3.amazonaws.com/mapzen.odes/ex_i653FMk2VwCUGetCYpH2hR4hpNLKV.osm.pbf -O var/osrm/data.osm.pbf
@docker-compose run osrm osrm-extract -p /opt/bicycle.lua /data/data.osm.pbf
@docker-compose run osrm osrm-contract /data/data.osrm
@printf "\e[0;32mCreating database..\e[0m\n"
@docker-compose run php composer install --prefer-dist --no-progress --no-suggest
@docker-compose run php bin/console doctrine:database:create --if-not-exists --env=dev
@docker-compose run php bin/console doctrine:query:sql 'CREATE EXTENSION IF NOT EXISTS postgis' --env=dev
@docker-compose run php bin/console doctrine:query:sql 'CREATE EXTENSION IF NOT EXISTS postgis_topology' --env=dev
@printf "\e[0;32mPopulating schema..\e[0m\n"
@docker-compose run php bin/demo
@docker-compose run php bin/console doctrine:migrations:version --add --all
phpunit:
@docker-compose run php vendor/bin/phpunit
behat:
@docker-compose run php php vendor/bin/behat
mocha:
@docker-compose run -e SYMFONY_ENV=test -e NODE_ENV=test nodejs /run-tests.sh
migrations-diff:
@docker-compose run php bin/console doctrine:migrations:diff
migrations-migrate:
@docker-compose run php bin/console doctrine:migrations:migrate