[Pkg-javascript-commits] [node-srs] 14/22: Run build tests

Jérémy Lal kapouer at moszumanska.debian.org
Sun Jun 21 19:38:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-srs.

commit 2e395755a231dfb83e03a1be06dce7fd879036d3
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sun Jun 21 21:16:49 2015 +0200

    Run build tests
---
 debian/control | 5 ++++-
 debian/rules   | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 08086fe..68dc254 100644
--- a/debian/control
+++ b/debian/control
@@ -9,6 +9,7 @@ Build-Depends:
  , dh-buildinfo
  , node-gyp
  , libgdal-dev (>= 1.10.0~)
+ , mocha
 Standards-Version: 3.9.6
 Homepage: https://github.com/springmeyer/node-srs
 Vcs-Git: git://anoncm.debian.org/collab-maint/node-srs.git
@@ -21,7 +22,9 @@ Depends:
  , ${misc:Depends}
  , nodejs
 Description: spatial reference library for Node.js
- node-srs provides a spatial reference library for Node.js
+ node-srs provides a spatial reference library for Node.js.
+ It is also able to detect projections used in files formatted as Shapefile
+ or GeoJSON, similarly to what gdalsrsinfo from gdal-bin package does.
  .
  Node.js is an event-based server-side javascript engine.
 
diff --git a/debian/rules b/debian/rules
index 373f6d2..baf6e67 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,11 @@ override_dh_auto_build:
 	node-gyp build
 
 override_dh_auto_test:
+	ln -s $(CURDIR)/build/lib/binding $(CURDIR)/lib/
+# disable a test that needs gdal 1.11 to succeed
+	mocha -g "GeoJSON should detect mercator" -i || testOk=$?
+	rm $(CURDIR)/lib/binding
+	exit ${testOk}
 
 override_dh_shlibdeps:
 	dpkg-shlibdeps \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-srs.git



More information about the Pkg-javascript-commits mailing list