blob: 66a968d442e72f73c1706873f91db855117844fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/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 <http://www.gnu.org/licenses/>.
#
# =*= 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
|