File: rules

package info (click to toggle)
node-lolex 5.1.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 800 kB
  • sloc: sh: 32; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --with nodejs

override_dh_auto_build:
	browserify-lite ./src/lolex-src.js --outfile lolex.js

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	node -e "require('.')"
	@echo Upstream test is played only during autopkgtest to avoid
	@echo a circular dependency on node-sinon
endif