Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
4b78956e
Verified
Commit
4b78956e
authored
5 months ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Skip CI on release branches since this always fails anyway
parent
1c2b47fa
No related branches found
No related tags found
No related merge requests found
Pipeline
#90752
passed
5 months ago
Stage: tox
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-17
10 additions, 17 deletions
.gitlab-ci.yml
with
10 additions
and
17 deletions
.gitlab-ci.yml
+
10
−
17
View file @
4b78956e
...
@@ -13,10 +13,12 @@ run-tox-pipeline:
...
@@ -13,10 +13,12 @@ run-tox-pipeline:
tags
:
tags
:
-
docker-executor
-
docker-executor
image
:
python:3.12
image
:
python:3.12
rules
:
-
when
:
always
-
if
:
$CI_COMMIT_BRANCH =~ /^release\/*/
when
:
never
# Don't run on release branches since these are short-lived and result in errors
services
:
services
:
-
postgres:14
-
postgres:14
# Change pip's cache directory to be inside the project directory since we can
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
# only cache local items.
variables
:
variables
:
...
@@ -25,22 +27,18 @@ run-tox-pipeline:
...
@@ -25,22 +27,18 @@ run-tox-pipeline:
POSTGRES_PASSWORD
:
nwa
POSTGRES_PASSWORD
:
nwa
DATABASE_HOST
:
"
postgres"
DATABASE_HOST
:
"
postgres"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
cache
:
key
:
tox-virtualenv
key
:
tox-virtualenv
paths
:
paths
:
-
.cache/pip
-
.cache/pip
-
venv/
-
venv/
before_script
:
before_script
:
-
pip install virtualenv
-
pip install virtualenv
-
virtualenv venv
-
virtualenv venv
-
. venv/bin/activate
-
. venv/bin/activate
-
pip install tox
-
pip install tox
script
:
script
:
-
tox
-
tox
artifacts
:
artifacts
:
paths
:
paths
:
-
htmlcov
-
htmlcov
...
@@ -51,12 +49,10 @@ build-documentation:
...
@@ -51,12 +49,10 @@ build-documentation:
tags
:
tags
:
-
docker-executor
-
docker-executor
image
:
python:3.12
image
:
python:3.12
before_script
:
before_script
:
-
cd $CI_PROJECT_DIR/docs
-
cd $CI_PROJECT_DIR/docs
script
:
script
:
-
/bin/sh ./build-docs.sh
-
/bin/sh ./build-docs.sh
artifacts
:
artifacts
:
paths
:
paths
:
-
docs/public
-
docs/public
...
@@ -67,17 +63,14 @@ lint-documentation:
...
@@ -67,17 +63,14 @@ lint-documentation:
image
:
image
:
name
:
jdkato/vale:latest
name
:
jdkato/vale:latest
entrypoint
:
[
"
"
]
entrypoint
:
[
"
"
]
tags
:
tags
:
-
docker-executor
-
docker-executor
needs
:
needs
:
-
job
:
build-documentation
# Only run when documentation has been built
-
job
:
build-documentation
# Only run when documentation has been built
artifacts
:
true
artifacts
:
true
before_script
:
before_script
:
-
cd $CI_PROJECT_DIR/docs/vale
-
cd $CI_PROJECT_DIR/docs/vale
-
vale sync
-
vale sync
script
:
script
:
-
vale --glob='!*/migrations/*' $CI_PROJECT_DIR/docs/source $CI_PROJECT_DIR/gso/
-
vale --glob='!*/migrations/*' $CI_PROJECT_DIR/docs/source $CI_PROJECT_DIR/gso/
...
@@ -87,8 +80,8 @@ publish-docs-prod-1:
...
@@ -87,8 +80,8 @@ publish-docs-prod-1:
# First deploy to prod-1
# First deploy to prod-1
tags
:
tags
:
-
gap-docs-prod-1
-
gap-docs-prod-1
only
:
rules
:
-
master
# Only publish when on the main branch
-
if
:
$CI_COMMIT_BRANCH == "
master
"
# Only publish when on the main branch
needs
:
needs
:
-
job
:
build-documentation
-
job
:
build-documentation
artifacts
:
true
artifacts
:
true
...
@@ -101,8 +94,8 @@ publish-docs-prod-2:
...
@@ -101,8 +94,8 @@ publish-docs-prod-2:
# When successful, also deploy to prod-2
# When successful, also deploy to prod-2
tags
:
tags
:
-
gap-docs-prod-2
-
gap-docs-prod-2
only
:
rules
:
-
master
# Only publish when on the main branch
-
if
:
$CI_COMMIT_BRANCH == "
master
"
# Only publish when on the main branch
needs
:
needs
:
-
job
:
build-documentation
-
job
:
build-documentation
artifacts
:
true
artifacts
:
true
...
@@ -126,7 +119,7 @@ trigger_jenkins_build:
...
@@ -126,7 +119,7 @@ trigger_jenkins_build:
script
:
curl -u "$JENKINS_USERNAME:$JENKINS_API_TOKEN"
script
:
curl -u "$JENKINS_USERNAME:$JENKINS_API_TOKEN"
--data "PROJECT=geant-service-orchestrator"
--data "PROJECT=geant-service-orchestrator"
"http://test-swd-release-service01.geant.org:8080/job/build-python-snapshot/buildWithParameters"
"http://test-swd-release-service01.geant.org:8080/job/build-python-snapshot/buildWithParameters"
only
:
rules
:
-
develop
-
if
:
$CI_COMMIT_BRANCH == "
develop
"
tags
:
tags
:
-
docker-executor
-
docker-executor
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment