From 594ac576b92f6522f4fc8eaf7a4e73431aa48981 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 5 Jan 2019 14:11:19 +0000 Subject: [PATCH] Include codestyle reports for master branch Signed-off-by: Niels Thykier --- .gitlab-ci.yml | 4 +++- ci/gitlab-ci-runner | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e54808..ae68a80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,11 +11,12 @@ tests-sid: image: debian:sid script: - apt-get update - - apt-get install -y python3 python3-apt python3-yaml python3-coverage python3-pycodestyle python3-pytest python3-pytest-cov git rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl + - apt-get install -y python3 python3-apt python3-yaml python3-coverage python3-pycodestyle pycodestyle python3-pytest python3-pytest-cov git rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl - ci/gitlab-ci-runner --with-coverage artifacts: paths: - coverage + - codestyle docs: stage: test @@ -39,6 +40,7 @@ pages: - mkdir public - mv docs public/docs - mv coverage public/coverage + - mv codestyle public/codestyle artifacts: paths: - public diff --git a/ci/gitlab-ci-runner b/ci/gitlab-ci-runner index dac87ec..ada2fe2 100755 --- a/ci/gitlab-ci-runner +++ b/ci/gitlab-ci-runner @@ -21,6 +21,8 @@ if [ $err = 0 ] && [ "x$1" = "x--with-coverage" ]; then python3-coverage report -m echo python3-coverage html -d coverage + mkdir codestyle + pycodestyle --config=setup.cfg britney.py britney2 --show-source --count > codestyle/codestyle.txt fi exit $err