[med-svn] [Git][med-team/elastix][master] 3 commits: d/rules: Add nifti lib to link flags

Gert Wollny gitlab at salsa.debian.org
Sun Dec 23 11:26:48 GMT 2018


Gert Wollny pushed to branch master at Debian Med / elastix


Commits:
2274241e by Gert Wollny at 2018-12-23T10:53:34Z
d/rules: Add nifti lib to link flags

- - - - -
454aa4f5 by Gert Wollny at 2018-12-23T11:10:49Z
d/.gitlab-ci.yml: Add CI support

- - - - -
c4545893 by Gert Wollny at 2018-12-23T11:25:43Z
d/rules: Add rule for running tests and change build dir

- - - - -


2 changed files:

- + debian/.gitlab-ci.yml
- debian/rules


Changes:

=====================================
debian/.gitlab-ci.yml
=====================================
@@ -0,0 +1,15 @@
+image: debian:sid
+
+build:
+  stage: build
+  before_script:
+    - apt-get update && apt-get -y install devscripts git-buildpackage 
+    - mk-build-deps --tool "apt -y -o Debug::pkgProblemResolver=yes --no-install-recommends" --install -r debian/control 
+  script:
+    - git checkout pristine-tar 
+    - git pull 
+    - git checkout master 
+    - git pull 
+    # silence build to not exceed build log size of gitlab-ci
+    - gbp buildpackage -uc -us 2>&1 >../build.log
+    - tail -n 100 ../build.log


=====================================
debian/rules
=====================================
@@ -4,10 +4,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 export DEB_CXXFLAGS_MAINT_APPEND  = -fvisibility=hidden
 
+export DEB_LDFLAGS_MAINT_APPEND=-lniftiio
+
 EPOCH_DATE:=$(shell date -u -d ${SOURCE_DATE_EPOCH} +%d.%m.%Y)
 
 %:
-	dh $@
+	dh --builddir=BUILD $@
 
 binary: binary-arch binary-indep
 
@@ -41,6 +43,9 @@ doc: doc-stamp
 doc-stamp: help/html/index.html dox/manual/manual.pdf
 	touch $@
 
+override_dh_auto_test:
+        LD_LIBRARY_PATH=`pwd`/BUILD/bin dh_auto_test
+
 # build-deps: doxygen, latex, dot
 help/html/index.html: help/doxyfile.out
 	doxygen $<



View it on GitLab: https://salsa.debian.org/med-team/elastix/compare/238a3984e0ce89e35dd36a24a42f1b1a84ca1a36...c45458932572c82b19c21bc5041e9c68f6f0504f

-- 
View it on GitLab: https://salsa.debian.org/med-team/elastix/compare/238a3984e0ce89e35dd36a24a42f1b1a84ca1a36...c45458932572c82b19c21bc5041e9c68f6f0504f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20181223/8d00953d/attachment-0001.html>


More information about the debian-med-commit mailing list