Codebase list node-compare-versions / 21c8dd6
Switch test and install to pkg-js-tools Xavier Guimard 4 years ago
7 changed file(s) with 4 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
22 Priority: optional
33 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
44 Uploaders: Julien Puydt <jpuydt@debian.org>
5 Build-Depends: debhelper-compat (= 12), mocha, nodejs
5 Testsuite: autopkgtest-pkg-nodejs
6 Build-Depends: debhelper-compat (= 12), mocha, pkg-js-tools (>= 0.9.20~)
67 Standards-Version: 4.4.1
78 Homepage: https://github.com/omichelsen/compare-versions#readme
89 Vcs-Git: https://salsa.debian.org/js-team/node-compare-versions.git
+0
-2
debian/install less more
0 package.json usr/lib/nodejs/compare-versions/
1 index.js usr/lib/nodejs/compare-versions/
00 #!/usr/bin/make -f
11
22 %:
3 dh $@
4
5 override_auto_test:
6 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
7 mocha
8 endif
3 dh $@ --with nodejs
+0
-5
debian/tests/control less more
0 Tests: require
1 Depends: @
2
3 Tests: runtestsuite
4 Depends: @, mocha
+0
-3
debian/tests/require less more
0 #!/bin/sh
1 set -e
2 nodejs -e "require('compare-versions');"
+0
-13
debian/tests/runtestsuite less more
0 #!/bin/sh
1 set -e
2
3 SEDCMD="s,require\s*[(]\s*'[.][.],require('compare-versions,g"
4
5 tmpdir=$(mktemp -d)
6 trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
7
8 cp -r test $tmpdir/
9
10 find $tmpdir/test/ -name "*.js" | xargs sed -i $SEDCMD
11
12 mocha $tmpdir/test