Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cubicweb
RQL
Commits
24ac87b767b4
Commit
24ac87b767b4
authored
2 years ago
by
Laurent Peuch
Browse files
Options
Downloads
Patches
Plain Diff
ci: use templates in .gitlab-ci.yml
parent
f9260d37020a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!75
ci: use templates in .gitlab-ci.yml
Pipeline
#124009
passed
2 years ago
Stage: lint
Stage: tests
Stage: after-tests
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-54
7 additions, 54 deletions
.gitlab-ci.yml
with
7 additions
and
54 deletions
.gitlab-ci.yml
+
7
−
54
View file @
24ac87b7
...
...
@@ -7,7 +7,13 @@
ref
:
"
branch/default"
file
:
-
"
templates/no-duplicated-ci-pipelines.yml"
# use workflow to avoid duplicated pipelines
-
"
templates/create-release-on-heptapod.yml"
# this will create a release on heptapod AND uses uploaded .deb by build-debian-package
-
"
templates/lint/black.yml"
# will do the equivalent of 'tox -e black'
-
"
templates/lint/flake8.yml"
# will do the equivalent of 'tox -e flake8'
-
"
templates/lint/mypy.yml"
# will do the equivalent of 'tox -e mypy'
-
"
templates/lint/check-manifest.yml"
# will do the equivalent of 'tox -e check-manifest'
-
"
templates/lint/yamllint.yml"
# will do the equivalent of 'tox -e yamllint'
-
"
templates/tests/py3.yml"
# will do the equivalent of 'tox -e py3'
-
"
templates/create-release-on-heptapod.yml"
# this will create a release on heptapod
# uncomment and uses to customize/extend the configuration here if needed
# (it needs to be at the same level than "- project")
# - ".gitlab-ci-extended.yml"
...
...
@@ -19,59 +25,6 @@
-
release
-
publish
flake8
:
except
:
variables
:
-
$TRIGGERED_FROM_OTHER_PROJECT
stage
:
lint
script
:
tox -e flake8
black
:
stage
:
lint
rules
:
-
if
:
$TRIGGERED_FROM_OTHER_PROJECT
when
:
never
-
changes
:
-
"
**/*.py"
script
:
tox -e black
mypy
:
except
:
variables
:
-
$TRIGGERED_FROM_OTHER_PROJECT
stage
:
lint
script
:
tox -e mypy
check-manifest
:
except
:
variables
:
-
$TRIGGERED_FROM_OTHER_PROJECT
stage
:
lint
script
:
tox -e check-manifest
yamllint
:
stage
:
lint
rules
:
-
if
:
$TRIGGERED_FROM_OTHER_PROJECT
when
:
never
-
changes
:
-
"
**/*.yaml"
-
"
*.yaml"
-
"
**/*.yml"
-
"
*.yml"
script
:
-
tox -e yamllint
py3
:
except
:
variables
:
-
$TRIGGERED_FROM_OTHER_PROJECT
stage
:
tests
script
:
tox -e py3
artifacts
:
paths
:
-
py3-deprecated-warnings.json
py3-from-forge
:
stage
:
tests
script
:
tox -e py3-from-forge
...
...
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