Skip to content
Snippets Groups Projects

CI: Extend integration testing

Merged Caleb Connolly requested to merge caleb/moar-testing into master
1 file
+ 61
61
Compare changes
  • Side-by-side
  • Inline
+ 61
61
@@ -16,70 +16,70 @@ before_script: &global_before_scripts
- "adduser -D build"
stages:
- lint
# - lint
- deploy
- test
codespell:
stage: lint
script:
- ".ci/codespell.sh"
pytest:
stage: test
script:
- "apk -q add git"
- "su build -c 'git config --global user.email ci@ci'"
- "su build -c 'git config --global user.name CI'"
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- ".ci/pytest.sh"
after_script:
- "cp /home/build/.local/var/pmbootstrap/log_testsuite.txt ."
- "cp /home/build/.local/var/pmbootstrap/log.txt ."
artifacts:
when: on_failure
paths:
- "log_testsuite.txt"
- "log.txt"
ruff:
stage: lint
script:
- ".ci/ruff.sh"
shellcheck:
stage: lint
script:
- ".ci/shellcheck.sh"
vermin:
stage: lint
script:
- ".ci/vermin.sh"
mr-settings:
stage: lint
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
before_script:
- *global_before_scripts
- "apk -q add python3"
- "wget -q 'https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/master/check_mr_settings.py'"
script:
- "python3 ./check_mr_settings.py"
mypy:
stage: lint
script:
- ".ci/mypy.sh"
docs:
stage: lint
script:
- ".ci/docs.sh"
artifacts:
paths:
- public
# codespell:
# stage: lint
# script:
# - ".ci/codespell.sh"
# pytest:
# stage: test
# script:
# - "apk -q add git"
# - "su build -c 'git config --global user.email ci@ci'"
# - "su build -c 'git config --global user.name CI'"
# - "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
# - ".ci/pytest.sh"
# after_script:
# - "cp /home/build/.local/var/pmbootstrap/log_testsuite.txt ."
# - "cp /home/build/.local/var/pmbootstrap/log.txt ."
# artifacts:
# when: on_failure
# paths:
# - "log_testsuite.txt"
# - "log.txt"
# ruff:
# stage: lint
# script:
# - ".ci/ruff.sh"
# shellcheck:
# stage: lint
# script:
# - ".ci/shellcheck.sh"
# vermin:
# stage: lint
# script:
# - ".ci/vermin.sh"
# mr-settings:
# stage: lint
# rules:
# - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
# before_script:
# - *global_before_scripts
# - "apk -q add python3"
# - "wget -q 'https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/master/check_mr_settings.py'"
# script:
# - "python3 ./check_mr_settings.py"
# mypy:
# stage: lint
# script:
# - ".ci/mypy.sh"
# docs:
# stage: lint
# script:
# - ".ci/docs.sh"
# artifacts:
# paths:
# - public
deploy:
only:
Loading