diff options
author | Konstantin Shalygin | 2018-07-09 15:26:28 +0700 |
---|---|---|
committer | Konstantin Shalygin | 2018-07-09 15:26:28 +0700 |
commit | c49a26e42ba1452657d00275edf728c5357bcfa2 (patch) | |
tree | 95d03e924fa25f344118a50a2e1276a6da3e88d0 | |
download | aur-c49a26e42ba1452657d00275edf728c5357bcfa2.tar.gz |
ansible-lint-junit 0.9
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | ansible_lint_junit_0.9_python3.patch | 19 |
4 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8e24c13bc38f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +# Generated by mksrcinfo v8 +# Mon Jul 9 08:26:07 UTC 2018 +pkgbase = ansible-lint-junit + pkgdesc = ansible-lint to JUnit converter + pkgver = 0.9 + pkgrel = 1 + url = https://github.com/wasilak/ansible-lint-junit + arch = any + license = BSD + makedepends = python + makedepends = python-setuptools + makedepends = python2 + makedepends = python2-setuptools + source = https://github.com/wasilak/ansible-lint-junit/archive/0.9.tar.gz + source = ansible_lint_junit_0.9_python3.patch + sha256sums = 5e49c4a15e6425fd5968f98d416f4917482c7fb6a871e7fb527edbd94b4b6a3b + sha256sums = e700d5d3d048197db0a67638c735a78306a528d28477deb946897ac6206c26bf + +pkgname = python-ansible-lint-junit + depends = ansible-lint + +pkgname = python2-ansible-lint-junit + depends = ansible-lint + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7c6927b4669a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/* +src/* +*.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d62fb86692d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru> +# Contributor: Shalygin Konstantin <k0ste@k0ste.ru> + +pkgbase='ansible-lint-junit' +pkgname=('python-ansible-lint-junit' 'python2-ansible-lint-junit') +pkgver='0.9' +pkgrel='1' +pkgdesc='ansible-lint to JUnit converter' +arch=('any') +url="https://github.com/wasilak/${pkgbase}" +makedepends=('python' 'python-setuptools' + 'python2' 'python2-setuptools') +license=('BSD') +source=("${url}/archive/${pkgver}.tar.gz" + "ansible_lint_junit_0.9_python3.patch") +sha256sums=('5e49c4a15e6425fd5968f98d416f4917482c7fb6a871e7fb527edbd94b4b6a3b' + 'e700d5d3d048197db0a67638c735a78306a528d28477deb946897ac6206c26bf') + +prepare() { + cd "${srcdir}/${pkgbase}-${pkgver}" + patch -p1 -i "${srcdir}/ansible_lint_junit_0.9_python3.patch" +} + +package_python-ansible-lint-junit() { + depends=('ansible-lint') + + cd "${srcdir}/${pkgbase}-${pkgver}" + python setup.py install -O1 --root="${pkgdir}" +} + +package_python2-ansible-lint-junit() { + depends=('ansible-lint') + + cd "${srcdir}/${pkgbase}-${pkgver}" + python2 setup.py install -O1 --root="${pkgdir}" +} diff --git a/ansible_lint_junit_0.9_python3.patch b/ansible_lint_junit_0.9_python3.patch new file mode 100644 index 000000000000..475a5af377b0 --- /dev/null +++ b/ansible_lint_junit_0.9_python3.patch @@ -0,0 +1,19 @@ +diff --git a/bootstrap/bootstrap.py b/bootstrap/bootstrap.py +index bba1c24..27f57ac 100755 +--- a/bootstrap/bootstrap.py ++++ b/bootstrap/bootstrap.py +@@ -49,7 +49,7 @@ def main(): + parsed_lines = [] + for line in ansible_lint_output: + if 0 < len(line): +- # print line ++ # print(line) + + line_match = line_regex.match(line) + +@@ -78,4 +78,4 @@ def main(): + parsed_lines_xml = ET.tostring(testsuites, encoding='utf8', method='xml') + + if options.verbose: +- print parsed_lines_xml ++ print(parsed_lines_xml) |