X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=.gitlab-ci.yml;fp=.gitlab-ci.yml;h=4d7f68d6de1961f3c3e95c296f00a78c3dc6539a;hp=514412926cb3b9d9d138b404c55d8a7f8c014425;hb=699eabe2c4d10a974166da51d6e7c27578f08d11;hpb=43efcdd63b071ef5a5224fec37ebf298cfacd0f9 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5144129..4d7f68d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,10 +25,11 @@ stages: - source venv/bin/activate - pip install pytest-cov - py.test -q --cov=musicpd test.py - only: - changes: + rules: + - changes: - musicpd.py - test.py + - if: $MUSICPD_TEST test-py3.11: extends: @@ -87,8 +88,8 @@ build: - dist/*.whl - dist/*.tar.gz - dist/*.zip - only: - - pushes + rules: + - if: $CI_PIPELINE_SOURCE == "push" tag_release: stage: build @@ -105,8 +106,8 @@ tag_release: - dist/*.tar.gz - dist/*.zip name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG" - only: - - tags + rules: + - if: $CI_COMMIT_TAG pages: stage: build @@ -116,5 +117,5 @@ pages: artifacts: paths: - public - only: - - master + rules: + - if: $CI_COMMIT_BRANCH == "master"