X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=.gitlab-ci.yml;fp=.gitlab-ci.yml;h=8b08de7ec5a496a1211228ec7b7f25530ed1c91c;hp=35c8fe0d149136ff672372429cb3c7770bec024b;hb=b2ba6116b8d9dc60ce4033a57eb9441c72f73b25;hpb=3c38c7d60c790695f8f4ca5d743e86d7edddb006 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35c8fe0..8b08de7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,8 +26,8 @@ stages: - py.test -q --cov=musicpd test.py rules: - changes: - - musicpd.py - - test.py + - musicpd.py + - test.py - if: $MUSICPD_TEST test-py3.11: @@ -87,6 +87,10 @@ build: - dist/*.* rules: - if: $CI_PIPELINE_SOURCE == "push" + changes: + - .gitlab-ci.yml + - musicpd.py + - test.py tag_release: stage: build @@ -104,6 +108,17 @@ tag_release: rules: - if: $CI_COMMIT_TAG +# Documentation +build_doc: + stage: build + script: + - pip install sphinx sphinx_rtd_theme + - sphinx-build doc/source -b html ./html -D html_theme=sphinx_rtd_theme + rules: + - if: $CI_PIPELINE_SOURCE == "push" + changes: + - doc/source/* + pages: stage: build script: