forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 979 Bytes
/
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
.PHONY: clean dev all check checkstatic unittests test phpdev javascript testdata
all: VERSION javascript
composer install --no-dev
# If anything changes, re-generate the VERSION file
VERSION: .
tools/gen-version.sh
phpdev:
composer install
javascript:
npm install
npm run compile
dev: VERSION phpdev javascript
clean:
rm -f smarty/templates_c/*
rm -f VERSION
rm -rf vendor
# Perform static analysis checks
checkstatic: phpdev
npm run lint:php
npm run lint:javascript
vendor/bin/phan
# The 'alex' tool scans documentation for condescending language.
# Arguments:
# --quiet Shows only warnings and errors
# --why Explains why something is problematic
# --diff On Travis, only scans files changed
make checklanguage:
npx alex --quiet --why --diff
unittests: phpdev
vendor/bin/phpunit --configuration test/phpunit.xml
# Perform all tests that don't require an install.
check: checkstatic unittests
testdata:
php tools/raisinbread_refresh.php