-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·58 lines (47 loc) · 1.16 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
#
# Makefile
# ronan, 2014-03-05 10:40
#
all:
@echo
@curl http://getcomposer.org/installer | php
@php composer.phar install --dev --optimize-autoloader
@if [ ! -d "./web/uploads/media" ]; then mkdir -p ./web/uploads/media; fi;
@chmod -R 0777 web/uploads
@php app/console assets:install web --symlink
help:
@echo
@echo "Available tasks:"
@echo
@echo "\tTo install: make install"
@echo "\tTo drop db: make dropDb"
@echo "\tTo clear cache: make clear"
@echo "\tTo run all tests: make tests"
@echo
dropDb:
@echo
@echo "Drop database..."
@php app/console doctrine:database:drop --force
createDb:
@echo
@echo "Create database..."
@php app/console doctrine:database:create
@php app/console doctrine:schema:update --force
clear:
@echo
@echo "Resetting cache..."
@rm -rf app/cache/*
behat:
bin/behat --lang=fr "@ApplicationSonataAdminBundle"
done:
@echo
@echo "Please create a super-admin user (see README.md):"
@echo
@echo "\tex: 'php app/console fos:user:create admin [email protected] --super-admin'"
@echo "\tpassword: lol (to match with the behat tests)"
@echo
install: createDb clear done
reinstall: dropDb install
tests: behat
# vim:ft=make
#