Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0c59aa0a
Commit
0c59aa0a
authored
May 16, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more choices to name the branch for docs only tests
http://rubular.com/r/51mKdLm6RF
parent
3d44ec3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
doc/development/writing_documentation.md
doc/development/writing_documentation.md
+13
-6
No files found.
.gitlab-ci.yml
View file @
0c59aa0a
...
@@ -75,7 +75,7 @@ stages:
...
@@ -75,7 +75,7 @@ stages:
# https://docs.gitlab.com/ce/development/writing_documentation.html#testing
# https://docs.gitlab.com/ce/development/writing_documentation.html#testing
.except-docs
:
&except-docs
.except-docs
:
&except-docs
except
:
except
:
-
/
^docs\/.*
/
-
/
(^docs[\/-].*|.*-docs$)
/
.rspec-knapsack
:
&rspec-knapsack
.rspec-knapsack
:
&rspec-knapsack
stage
:
test
stage
:
test
...
@@ -309,7 +309,7 @@ downtime_check:
...
@@ -309,7 +309,7 @@ downtime_check:
-
master
-
master
-
tags
-
tags
-
/^[\d-]+-stable(-ee)?$/
-
/^[\d-]+-stable(-ee)?$/
-
/
^docs\/*
/
-
/
(^docs[\/-].*|.*-docs$)
/
ee_compat_check
:
ee_compat_check
:
<<
:
*rake-exec
<<
:
*rake-exec
...
...
doc/development/writing_documentation.md
View file @
0c59aa0a
...
@@ -78,14 +78,21 @@ Currently GitLab docs use Redcarpet as [markdown](../user/markdown.md) engine, b
...
@@ -78,14 +78,21 @@ Currently GitLab docs use Redcarpet as [markdown](../user/markdown.md) engine, b
We try to treat documentation as code, thus have implemented some testing.
We try to treat documentation as code, thus have implemented some testing.
Currently, the following tests are in place:
Currently, the following tests are in place:
1.
`docs
:check:links`
: Check that all internal (relative) links work correctly
1.
`docs
lint`
: Check that all internal (relative) links work correctly and
1.
`docs:check:apilint`
: Check that the API docs follow some conventions
that all cURL examples in API docs use the full switches.
If your contribution contains
**only**
documentation changes, you can speed up
If your contribution contains
**only**
documentation changes, you can speed up
the CI process by prepending to the name of your branch:
`docs/`
. For example,
the CI process by following some branch naming conventions. You have three
a valid name would be
`docs/update-api-issues`
and it will run only the docs
choices:
tests. If the name is
`docs-update-api-issues`
, the whole test suite will run
(including docs).
| Branch name | Valid example |
| ----------- | ------------- |
| Starting with
`docs/`
|
`docs/update-api-issues`
|
| Starting with
`docs-`
|
`docs-update-api-issues`
|
| Ending in
`-docs`
|
`123-update-api-issues-docs`
|
If your branch name matches any of the above, it will run only the docs
tests. If it doesn't, the whole test suite will run (including docs).
---
---
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment