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

49 lines
1.1 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-sid:
stage: test
image: debian:sid
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:
paths:
- coverage
- codestyle
docs:
stage: test
image: debian:sid
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-sid
script:
- rm -fr public
- mkdir public
- mv docs public/docs
- mv coverage public/coverage
- mv codestyle public/codestyle
artifacts:
paths:
- public
only:
- master