CI: use Alpine for py-sh-static job (!636)

Resolves #366
This commit is contained in:
Bart Ribbers 2019-09-19 12:01:15 +02:00 committed by Oliver Smith
parent 63544524b7
commit 827967a465
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,7 +1,7 @@
--- ---
# global settings # global settings
image: alpine:latest image: alpine:edge
after_script: after_script:
- .gitlab-ci/move_logs.sh $CI_PROJECT_DIR - .gitlab-ci/move_logs.sh $CI_PROJECT_DIR
stages: stages:
@ -31,14 +31,12 @@ wiki:
script: script:
- .gitlab-ci/check_devices_in_wiki.py --booting - .gitlab-ci/check_devices_in_wiki.py --booting
# static code analysis (shellcheck is not in Alpine, so we use Debian) # static code analysis
py-sh-static: py-sh-static:
stage: first stage: first
<<: *only-default <<: *only-default
image: python:3.6-slim-stretch
before_script: before_script:
- apt -q update >/dev/null - apk -q add py3-flake8 shellcheck
- apt -y install flake8 shellcheck >/dev/null
script: script:
- .gitlab-ci/static_code_analysis.sh - .gitlab-ci/static_code_analysis.sh