From f3bd439c43ca7fd6a3f2d5f2f58d4df141780935 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Wed, 27 Nov 2019 14:22:13 +0100 Subject: [PATCH] Add gitlab CI --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..44de6b0b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +stages: + - test + +unit_tests: + stage: test + before_script: + - 'apk update' + - 'apk add python3' + script: + - ./bin/build-helper version + - ./bin/build-helper test + +pycodestyle: + stage: test + before_script: + - 'apk update' + - 'apk add python3 py3-pycodestyle' + - 'ln -f -s /usr/bin/pycodestyle-3 /usr/bin/pycodestyle' + script: + - ./bin/build-helper pycodestyle + +shellcheck: + stage: test + before_script: + - 'wget https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz' + - 'tar xf shellcheck-stable.linux.x86_64.tar.xz && mv shellcheck-stable/shellcheck /usr/bin/' + script: + - ./bin/build-helper shellcheck