You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
britney2-ubuntu/.gitlab-ci.yml

64 lines
1.6 KiB

tests-stretch:
stage: test
image: debian:stretch
script:
- apt-get update
- apt-get install -y python3 python3-apt python3-yaml python3-pycodestyle python3-pytest git rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl
- ci/gitlab-ci-runner
tests-buster:
stage: test
image: debian:buster
script:
- apt-get update
- apt-get install -y python3 python3-apt python3-yaml python3-coverage python3-pycodestyle pycodestyle python3-pytest python3-pytest-cov git rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl
- ci/gitlab-ci-runner --with-coverage
artifacts:
when: always
paths:
- coverage
- codestyle
tests-bullseye:
stage: test
image: debian:bullseye
allow_failure: true
script:
- apt-get update
- apt-get install -y python3 python3-apt python3-yaml python3-coverage python3-pycodestyle pycodestyle python3-pytest python3-pytest-cov git rsync libclass-accessor-perl libdpkg-perl libyaml-syck-perl
- ci/gitlab-ci-runner --with-coverage
artifacts:
when: always
paths:
- coverage
- codestyle
docs:
stage: test
image: debian:buster
script:
- apt-get update
- apt-get install -y python3-sphinx
- sphinx-build -M html doc _build
- mv _build/html docs
artifacts:
paths:
- docs
pages:
stage: deploy
dependencies:
- docs
- tests-buster
script:
- rm -fr public
- mkdir public
- mv docs public/docs
- mv coverage public/coverage
- mv codestyle public/codestyle
artifacts:
paths:
- public
only:
- master