forked from firecow/gitlab-ci-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
54 lines (48 loc) · 999 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
54 lines (48 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
stages: [build, test]
# Producer is NOT parallelized — using needs.parallel.matrix on it must error.
build-job:
stage: build
script:
- echo "build"
test-job:
stage: test
needs:
- job: build-job
parallel:
matrix:
- NAME: foo
script:
- echo "test"
# Producer uses plain `parallel: <integer>` (no matrix) — selector still must error.
build-int:
stage: build
parallel: 3
script:
- echo "build-int $CI_NODE_INDEX/$CI_NODE_TOTAL"
test-plain-parallel:
stage: test
needs:
- job: build-int
parallel:
matrix:
- NAME: foo
script:
- echo "test-plain-parallel"
# Producer is parallel:matrix but the selector matches zero permutations.
build-foo:
stage: build
parallel:
matrix:
- NAME: [foo, bar]
script:
- echo "build-foo $NAME"
test-zero-match:
stage: test
needs:
- job: build-foo
parallel:
matrix:
- NAME: nope
script:
- echo "test-zero-match"