Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
debian: Run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Aug 18, 2015
1 parent 779e554 commit 8759994
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mopidy-local-sqlite (0.10.3-1) unstable; urgency=medium

* New upstream release.
* Update GitHub repository location.
* Run tests on build.

-- Stein Magnus Jodal <stein.magnus@jodal.no> Tue, 18 Aug 2015 14:58:08 +0200

Expand Down
3 changes: 3 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ Build-Depends: debhelper (>= 9),
dh-python,
mopidy (>= 1.0.8-2),
python-all (>= 2.7),
python-mock,
python-pytest,
python-setuptools,
python-uritools,
Standards-Version: 3.9.6
Homepage: https://github.com/mopidy/mopidy-local-sqlite
Vcs-Git: git://github.com/mopidy/mopidy-local-sqlite.git
Expand Down
21 changes: 21 additions & 0 deletions debian/patches/0001-Allow-running-pytest-without-coverage.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From: Stein Magnus Jodal <stein.magnus@jodal.no>
Date: Tue, 18 Aug 2015 15:18:10 +0200
Subject: Allow running pytest without coverage

---
setup.cfg | 3 ---
1 file changed, 3 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index 141ee34..876852d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,8 +2,5 @@
application-import-names = mopidy_local_sqlite,tests
exclude = .git,.tox,build

-[pytest]
-addopts = --cov=mopidy_local_sqlite --cov-report=term-missing
-
[wheel]
universal = 1
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001-Allow-running-pytest-without-coverage.patch
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_DISABLE=test
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/tests/

%:
dh $@ --with python2 --buildsystem=pybuild

0 comments on commit 8759994

Please sign in to comment.