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: ...@@ -11,14 +11,14 @@ variables:
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
.code_changes: .code_changes:
only: rules:
changes: - changes:
- silkaj/*.py - silkaj/*.py
- tests/*.py - tests/*.py
.changes: .changes:
only: rules:
changes: - changes:
- silkaj/*.py - silkaj/*.py
- tests/*.py - tests/*.py
- .gitlab-ci.yml - .gitlab-ci.yml
...@@ -78,23 +78,26 @@ tests-3.8: ...@@ -78,23 +78,26 @@ tests-3.8:
pypi_test: pypi_test:
stage: publish stage: publish
only: [tags] rules:
when: manual - if: $CI_COMMIT_TAG
when: manual
script: script:
- poetry config repositories.pypi_test https://test.pypi.org/legacy/ - poetry config repositories.pypi_test https://test.pypi.org/legacy/
- poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test - poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
pypi: pypi:
stage: publish stage: publish
only: [tags] rules:
when: manual - if: $CI_COMMIT_TAG
when: manual
script: script:
- poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD - poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
pages: pages:
extends: .changes extends: .changes
needs: [tests-3.7-coverage] needs: [tests-3.7-coverage]
only: [dev] rules:
- if: $CI_COMMIT_BRANCH == "dev"
stage: coverage stage: coverage
script: mv cov_html/ public/ script: mv cov_html/ public/
artifacts: 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