-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
40 lines (31 loc) · 1.03 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
all: clean todo
clean:
rm -f ./TODO.txt
todo: TODO.txt
TODO.txt:
@echo "Generating TODO.txt file"
@echo "# This file was generated automatically by grep-ing for 'TO DO' in the source code." > ./TODO.txt
@echo "# This file is meant as a pointer to the actual details in the files themselves." >> TODO.txt
@echo "# This file was created "`date` >> TODO.txt
@echo "" >> TODO.txt
@-grep -n -r -e "TO DO" www >> TODO.txt
@-grep -n -r -e "TO DO" bin >> TODO.txt
@-grep -n -r -e "TODO" www >> TODO.txt
@-grep -n -r -e "TODO" bin >> TODO.txt
templates:
php -q ./bin/compile-templates.php
secret:
php -q ./bin/generate_secret.php
test:
prove -v --exec 'php --php-ini ./tests/php.ini' ./tests/*.t
cover:
rm -f ./tests/coverage.state
rm -rf ./coverage
-make test
php -q ./tests/coverage.php
docker:
docker build -t flamework .
docker run -ti -p80\:8081 -p443\:4331 -v ~/dev/flamework\:/mnt/flamework --name=flamework --rm flamework
docker-test:
docker exec -ti flamework apt-get install -y make
docker exec -ti flamework make test