Skip to content

Commit

Permalink
merge: Merge pull request #8 from DSD-DBS/fix-gitlab-pipeline-2
Browse files Browse the repository at this point in the history
ci: Fix the GitLab CI/CD Pipeline
  • Loading branch information
ewuerger authored Aug 15, 2023
2 parents 0db6da0 + a01fab1 commit 70c5a89
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ stages:
- test
- deploy

.script-github_token: &script-github_token
- git config --global --add url."https://$PAT_GITHUB@github".insteadOf https://github
.patch-pyproject-toml: &patch-pyproject-toml
- sed -i -e 's/\(^ "polarion-rest-api-client\).*",/\1",/' pyproject.toml

wheel:
stage: build
extends: .wheel
script:
- *script-github_token
- *patch-pyproject-toml
- pip wheel . -w dist/

pages:
Expand All @@ -22,18 +22,18 @@ pages:
variables:
OUTPUT_DIR: public
SPHINX_DEPENDENCIES: ".[docs]"
only: [master]
only: [main]
before_script:
- *script-github_token
- *patch-pyproject-toml

pages:test:
extends: pages
variables:
OUTPUT_DIR: pages-test
only: []
except: [master]
except: [main]
before_script:
- *script-github_token
- *patch-pyproject-toml

coverage:
stage: test
Expand All @@ -42,14 +42,14 @@ coverage:
COVERAGE_SOURCE: capella2polarion
needs: []
before_script:
- *script-github_token
- *patch-pyproject-toml

pre-commit:
stage: test
extends: .pre-commit
needs: []
before_script:
- *script-github_token
- *patch-pyproject-toml

artifactory:
stage: deploy
Expand Down

0 comments on commit 70c5a89

Please sign in to comment.