#!/bin/bash # Copyright 2015 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # =*= License: GPL-3+ =*= set -eu export GIT_AUTHOR_NAME='Tomjon King' export GIT_AUTHOR_EMAIL='tomjon@example.com' export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" python -m CoverageTestRunner icklib --ignore-missing-from without-tests rm -f .coverage pep8 ick icklib/*.py # We only run pylint if it's new enough. We assume check is being run # on Debian, to be able to use dpkg --compare-versions. v="$(pylint --version 2>/dev/null | awk '/^pylint/ { print $2 }' | tr -d ,)" if dpkg --compare-versions "$v" ge 1.3.1 then pylint --rcfile=pylint.conf ick icklib fi if env | grep '^ICK_UNSTABLE_TEST_TARGET' then yarn --env "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" \ --env "ICK_UNSTABLE_TEST_TARGET=$ICK_UNSTABLE_TEST_TARGET" \ --env "ICK_JESSIE_TEST_TARGET=$ICK_JESSIE_TEST_TARGET" \ "$@"\ <(sed '/^ EXAMPLE/,/^ *$/d' doc/*.yarn) fi