]> kaliko git repositories - python-musicpd.git/commitdiff
ci: s/only/changes/
authorKaliko Jack <kaliko@azylum.org>
Sat, 11 Nov 2023 13:00:18 +0000 (14:00 +0100)
committerKaliko Jack <kaliko@azylum.org>
Sat, 11 Nov 2023 14:36:48 +0000 (15:36 +0100)
.gitlab-ci.yml

index 514412926cb3b9d9d138b404c55d8a7f8c014425..4d7f68d6de1961f3c3e95c296f00a78c3dc6539a 100644 (file)
@@ -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"