Skip to content
Snippets Groups Projects
Commit b05228a4 authored by Moul's avatar Moul
Browse files

[CI] Change only/except to rules

- Will be removed from GitLab v13.0
- https://docs.gitlab.com/ee/ci/yaml/#rules
parent 663542f0
No related branches found
No related tags found
2 merge requests!146Merge dev into master branch to complete v0.8.0 development cycle,!131Multiple small changes
Pipeline #9165 passed
......@@ -11,14 +11,14 @@ variables:
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
.code_changes:
only:
changes:
rules:
- changes:
- silkaj/*.py
- tests/*.py
.changes:
only:
changes:
rules:
- changes:
- silkaj/*.py
- tests/*.py
- .gitlab-ci.yml
......@@ -78,23 +78,26 @@ tests-3.8:
pypi_test:
stage: publish
only: [tags]
when: manual
rules:
- if: $CI_COMMIT_TAG
when: manual
script:
- poetry config repositories.pypi_test https://test.pypi.org/legacy/
- poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
pypi:
stage: publish
only: [tags]
when: manual
rules:
- if: $CI_COMMIT_TAG
when: manual
script:
- poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
pages:
extends: .changes
needs: [tests-3.7-coverage]
only: [dev]
rules:
- if: $CI_COMMIT_BRANCH == "dev"
stage: coverage
script: mv cov_html/ public/
artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment