You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial_tips_tricks.rst
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,6 +367,8 @@ This option is useful when you combine it with the various test filtering option
367
367
For example, you might want to rerun only the failed tests or just a specific test in a dependency chain.
368
368
Let's see an artificial example that uses the following test dependency graph.
369
369
370
+
.. _fig-deps-complex:
371
+
370
372
.. figure:: _static/img/deps-complex.svg
371
373
:align:center
372
374
@@ -477,3 +479,60 @@ If we tried to run :class:`T6` without restoring the session, we would have to r
477
479
478
480
[ PASSED ] Ran 5 test case(s) from 5 check(s) (0 failure(s))
479
481
[==========] Finished on Thu Jan 21 14:32:09 2021
482
+
483
+
484
+
.. _generate-ci-pipeline:
485
+
486
+
Integrating into a CI pipeline
487
+
------------------------------
488
+
489
+
.. versionadded:: 3.5
490
+
491
+
Instead of running your tests, you can ask ReFrame to generate a `child pipeline <https://docs.gitlab.com/ee/ci/parent_child_pipelines.html>`__ specification for the Gitlab CI.
492
+
This will spawn a CI job for each ReFrame test respecting test dependencies.
493
+
You could run your tests in a single job of your Gitlab pipeline, but you would not take advantage of the parallelism across different CI jobs.
494
+
Having a separate CI job per test makes it also easier to spot the failing tests.
495
+
496
+
As soon as you have set up a `runner <https://docs.gitlab.com/ee/ci/quick_start/>`__ for your repository, it is fairly straightforward to use ReFrame to automatically generate the necessary CI steps.
497
+
The following is an example of ``.gitlab-ci.yml`` file that does exactly that:
0 commit comments