forked from ungleich-public/cdist
Add gitlab CI
This commit is contained in:
parent
3d3b59ab87
commit
f3bd439c43
1 changed files with 28 additions and 0 deletions
28
.gitlab-ci.yml
Normal file
28
.gitlab-ci.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue