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
afa73f4d
Commit
afa73f4d
authored
Jul 31, 2019
by
drew
Committed by
Evan Read
Jul 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation: Added Semaphore Test Boosters example to CI YAML `parallel` docs
parent
0b975947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+29
-6
No files found.
doc/ci/yaml/README.md
View file @
afa73f4d
...
...
@@ -1771,18 +1771,41 @@ sequentially from `job_name 1/N` to `job_name N/N`.
For every job,
`CI_NODE_INDEX`
and
`CI_NODE_TOTAL`
[
environment variables
](
../variables/README.md#predefined-environment-variables
)
are set.
A simple examp
le:
Marking a job to be run in parallel requires only a simple addition to your configuration fi
le:
```
yaml
test
:
script
:
rspec
parallel
:
5
```
diff
test:
script: rspec
+
parallel: 5
```
TIP:
**Tip:**
Parallelize tests suites across parallel jobs.
Different languages have different tools to facilitate this.
A simple example using
[
Sempahore Test Boosters
](
https://github.com/renderedtext/test-boosters
)
and RSpec to run some Ruby tests:
```
ruby
# Gemfile
source
'https://rubygems.org'
gem
'rspec'
gem
'semaphore_test_boosters'
```
```
yaml
test
:
parallel
:
3
script
:
-
bundle
-
bundle exec rspec_booster --job $CI_NODE_INDEX/$CI_NODE_TOTAL
```
CAUTION:
**Caution:**
Please be aware that semaphore_test_boosters reports usages statistics to the author.
You can then navigate to the
**Jobs**
tab of a new pipeline build and see your RSpec
job split into three separate jobs.
### `trigger` **(PREMIUM)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ee/issues/8997) in [GitLab Premium](https://about.gitlab.com/pricing/) 11.8.
...
...
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