File: rules

package info (click to toggle)
node-espree 7.3.1~dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,192 kB
  • sloc: javascript: 171,015; sh: 41; makefile: 14; xml: 1
file content (21 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

ESLINT = eslint
MOCHA = mocha --no-timeout
# normalize output with TAP where possible unless terse requested
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
ESLINT += --format tap
MOCHA += --reporter tap
else
ESLINT += --format unix
MOCHA += --reporter dot --no-colors
endif

%:
	dh $@

# TODO: check full testsuite
# TODO: lint-check code strictly
override_dh_auto_test:
	$(MOCHA) --exclude tests/lib/libraries.js 'tests/lib/**/*.js'
	$(ESLINT) Makefile.js .eslintrc.js 'lib/**/*.js' espree.js 'tests/lib/**/*.js' || true