Skip to content
Snippets Groups Projects
Unverified Commit 13f277a5 authored by Oliver Smith's avatar Oliver Smith
Browse files

CI: use gitlab-ci

parent 6ffb1748
No related branches found
No related tags found
No related merge requests found
Pipeline #189425 passed
image: alpine/edge
packages:
- sudo
sources:
- https://git.sr.ht/~postmarketos/pmbootstrap
tasks:
- note: |
pmbootstrap/.ci/note.sh
- shellcheck: |
cd pmbootstrap
sudo .ci/shellcheck.sh
- ruff: |
cd pmbootstrap
sudo .ci/ruff.sh
- vermin: |
cd pmbootstrap
sudo .ci/vermin.sh
- codespell: |
cd pmbootstrap
sudo .ci/codespell.sh
- pytest: |
cd pmbootstrap
sudo .ci/pytest.sh
artifacts:
- ".local/var/pmbootstrap/log.txt"
- ".local/var/pmbootstrap/log_testsuite.txt"
#!/bin/sh -e
printf "\n"
printf "==============================================\n"
printf "PROTIP: use"
printf " \e[1;32mpmbootstrap ci\e[0m"
printf " \e[1;33mpmbootstrap ci\e[0m"
printf " to run these scripts locally.\n"
printf "==============================================\n"
image: alpine:edge
before_script:
- ".ci/note.sh"
- "echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories"
- "adduser -D build"
stages:
- lint
- 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"
ruff:
stage: lint
script:
- ".ci/ruff.sh"
shellcheck:
stage: lint
script:
- ".ci/shellcheck.sh"
vermin:
stage: lint
script:
- ".ci/vermin.sh"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment