forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·63 lines (48 loc) · 1.34 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
59
60
61
62
.PHONY: clean dev all check checkstatic unittests phpdev jslatest testdata
all: VERSION
composer install --no-dev
npm ci
npm run build
# If anything changes, re-generate the VERSION file
VERSION: .
tools/gen-version.sh
phpdev:
composer install
dev: VERSION phpdev
npm ci
npm run compile
jslatest: clean
rm -rf package-lock.json
rm -rf modules/electrophysiology_browser/jsx/react-series-data-viewer/package-lock.json
npm install
npm run compile
clean:
rm -f smarty/templates_c/*
rm -f VERSION
rm -rf vendor
rm -rf node_modules
rm -rf modules/electrophysiology_browser/jsx/react-series-data-viewer/node_modules
# Perform static analysis checks
checkstatic: phpdev
npm run lint:php
vendor/bin/phan
npm run lint:js
# 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
instrument_manager:
target=instrument_manager npm run compile
login:
target=login npm run compile
mri_violations:
target=mri_violations npm run compile