Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Warmuz <jakub@warmuz.org>2015-05-10 19:52:32 +0300
committerJakub Warmuz <jakub@warmuz.org>2015-05-10 19:53:22 +0300
commit5fbc5cee2e2ee3bbaa131d29391c9e61ea8465a2 (patch)
tree5ce748b6fc6fe39f2a93bea654413e88f53c167b /tox.cover.sh
parent734868b01563cba790d9fe37c8ad8217934d7ac1 (diff)
Add tox.cover.sh for proper coveralls experience.
Diffstat (limited to 'tox.cover.sh')
-rwxr-xr-xtox.cover.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tox.cover.sh b/tox.cover.sh
new file mode 100755
index 000000000..2cc2484ed
--- /dev/null
+++ b/tox.cover.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# This script is used by tox.ini (and thus Travis CI) in order to
+# generate separate stats for each package. It should be removed once
+# those packages are moved to separate repo.
+
+cover () {
+ # "-c /dev/null" makes sure setup.cfg is not loaded (multiple
+ # --with-cover add up, --cover-erase must not be set for coveralls
+ # to get all the data); --with-cover scopes coverage to only
+ # specific package, positional argument scopes tests only to
+ # specific package directory
+ nosetests -c /dev/null --with-cover --cover-package "$1" \
+ --cover-min-percentage="$2" "$1"
+}
+
+# don't use sequential composition (;), if letsencrypt_nginx returns
+# 0, coveralls submit will be triggered (c.f. .travis.yml,
+# after_success)
+cover letsencrypt 88 && cover acme 100 && \
+ cover letsencrypt_apache 67 && cover letsencrypt_nginx 90