CI: only use Alpine edge image for the shellcheck task (!733)
This commit is contained in:
parent
11e2b269ab
commit
81872a59c1
@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# global settings
|
# global settings
|
||||||
image: alpine:edge
|
image: alpine:latest
|
||||||
after_script:
|
after_script:
|
||||||
- .gitlab-ci/move_logs.sh $CI_PROJECT_DIR
|
- .gitlab-ci/move_logs.sh $CI_PROJECT_DIR
|
||||||
stages:
|
stages:
|
||||||
- first
|
- first
|
||||||
- second
|
- second
|
||||||
|
|
||||||
.before_script: &before_script
|
|
||||||
- apk -q upgrade
|
|
||||||
|
|
||||||
# defaults for "only"
|
# defaults for "only"
|
||||||
# We need to run the CI jobs in a "merge request specific context", if CI is
|
# We need to run the CI jobs in a "merge request specific context", if CI is
|
||||||
# running in a merge request. Otherwise the environment variable that holds the
|
# running in a merge request. Otherwise the environment variable that holds the
|
||||||
@ -33,7 +30,6 @@ wiki:
|
|||||||
changes:
|
changes:
|
||||||
- device/device-*
|
- device/device-*
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- apk -q add python3
|
- apk -q add python3
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/check_devices_in_wiki.py --booting
|
- .gitlab-ci/check_devices_in_wiki.py --booting
|
||||||
@ -46,7 +42,6 @@ testcases-linting:
|
|||||||
changes:
|
changes:
|
||||||
- .gitlab-ci/*
|
- .gitlab-ci/*
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- apk -q add py3-flake8
|
- apk -q add py3-flake8
|
||||||
script:
|
script:
|
||||||
- flake8 --ignore E501,F401,E722,W504,W605
|
- flake8 --ignore E501,F401,E722,W504,W605
|
||||||
@ -55,8 +50,9 @@ testcases-linting:
|
|||||||
shellcheck:
|
shellcheck:
|
||||||
stage: first
|
stage: first
|
||||||
<<: *only-default
|
<<: *only-default
|
||||||
|
image: alpine:edge
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
- apk -q upgrade
|
||||||
- apk -q add shellcheck
|
- apk -q add shellcheck
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/shellcheck.sh
|
- .gitlab-ci/shellcheck.sh
|
||||||
@ -66,7 +62,6 @@ aports-static:
|
|||||||
stage: first
|
stage: first
|
||||||
<<: *only-default
|
<<: *only-default
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- .gitlab-ci/install_pmbootstrap.sh pytest
|
- .gitlab-ci/install_pmbootstrap.sh pytest
|
||||||
script:
|
script:
|
||||||
- apk -q add git
|
- apk -q add git
|
||||||
@ -89,7 +84,6 @@ mr-settings:
|
|||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- apk -q add python3
|
- apk -q add python3
|
||||||
script:
|
script:
|
||||||
- .gitlab-ci/check_mr_settings.py
|
- .gitlab-ci/check_mr_settings.py
|
||||||
@ -100,7 +94,6 @@ aports-static-upstream:
|
|||||||
only:
|
only:
|
||||||
- master@postmarketOS/pmaports
|
- master@postmarketOS/pmaports
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- .gitlab-ci/install_pmbootstrap.sh pytest
|
- .gitlab-ci/install_pmbootstrap.sh pytest
|
||||||
script:
|
script:
|
||||||
- su pmos -c ".gitlab-ci/run_testcases.sh
|
- su pmos -c ".gitlab-ci/run_testcases.sh
|
||||||
@ -118,7 +111,6 @@ aports-build:
|
|||||||
stage: second
|
stage: second
|
||||||
<<: *only-default
|
<<: *only-default
|
||||||
before_script:
|
before_script:
|
||||||
- *before_script
|
|
||||||
- .gitlab-ci/install_pmbootstrap.sh git
|
- .gitlab-ci/install_pmbootstrap.sh git
|
||||||
script:
|
script:
|
||||||
- PYTHONUNBUFFERED=1 su pmos -c ".gitlab-ci/build_changed_aports.py"
|
- PYTHONUNBUFFERED=1 su pmos -c ".gitlab-ci/build_changed_aports.py"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user