Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

Commit 22e97f34 authored by Duncan Macleod's avatar Duncan Macleod

debian: improved debian packaging

still can't test it because lscsoft buster repo is borked
parent 4a7210af
Pipeline #60872 passed with stages
in 2 minutes and 21 seconds
......@@ -18,6 +18,9 @@ variables:
paths:
- dist
.run-tests: &run-tests |
python3 -m pytest tests --cov=gwdatafind_server --junitxml=junit.xml
# -- lint -------------------
lint:
......@@ -51,6 +54,12 @@ dist:tarball:
stage: build
dependencies:
- dist:tarball
artifacts:
expire_in: 18h
paths:
- dist
reports:
junit: junit.xml
.build:debian: &build-debian
<<: *build
......@@ -59,6 +68,7 @@ dist:tarball:
- apt-get install -yq
dpkg-dev
devscripts
lintian
script:
- DIST_NAME=${CI_JOB_NAME#build:debian:}
- mkdir -pv dist/${DIST_NAME}
......@@ -70,9 +80,21 @@ dist:tarball:
- mk-build-deps --tool "apt-get -y" --install --remove
# build debian packages
- dpkg-buildpackage -us -uc -b
# lint the package
- lintian -v gwdatafind-server_*.changes
# install the package
- dpkg --install gwdatafind-server_*.deb || {
apt-get -y -f install;
dpkg --install ${GWPY_DEB};
}
# run the tests (in a separate directory path)
- mkdir -p testing
- cd testing
- cp -r ../tests .
- *run-tests
# move things into dist/
- popd
- mv -v {python,python3}-gwdatafind-server_*.deb gwdatafind-server_*.{buildinfo,changes} dist/${DIST_NAME}/
- mv -v python3-gwdatafind-server_*.deb gwdatafind-server_*.{buildinfo,changes} dist/${DIST_NAME}/
build:debian:buster:
<<: *build-debian
......@@ -92,7 +114,7 @@ build:debian:buster:
"pytest>=2.8.0"
"pytest-cov"
script:
- python -m pytest tests --cov=gwdatafind_server --junitxml=junit.xml
- *run-tests
cache:
key: "${CI_JOB_NAME}"
paths:
......
......@@ -5,12 +5,13 @@ Maintainer: Duncan Macleod <duncan.macleod@ligo.org>
Section: python
Priority: optional
Standards-Version: 3.9.1
X-Python3-Version: >= 3.4
X-Python3-Version: >= 3.6
Build-Depends: debhelper (>= 9),
dh-python,
python3-all,
python3-setuptools,
python3-configobj,
python3-flask (>= 1.0.0),
python3-ligo-segments,
# -- python3-gwdatafind-server ------------------
......@@ -20,6 +21,7 @@ Architecture: all
Depends: ${misc:Depends},
${python3:Depends},
python3-configobj,
python3-flask (>= 1.0.0),
python3-ligo-segments
Description: The server library for the GWDataFind service
.
......
#!/usr/bin/make -f
export PYBUILD_NAME = gwdatafind-server
export PYBUILD_DISABLE = test
%:
dh $@ --with python3 --buildsystem=pybuild
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment