-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-test-reproducibility.yml
67 lines (62 loc) · 1.8 KB
/
.gitlab-test-reproducibility.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
generate_server_reproducibility_yml:
stage: test_tools
variables:
REPEAT: 10
script: |
tools/repeat-ci.sh server/.gitlab-ci.yml $REPEAT .gitlab-ci.yml .test_server_base .test_cypress_base .setup_docker_server .test_server_base_dind .before_script_global .before_script_global_docker -- .gitlab-ci.yml browser/.gitlab-ci.yml | grep -v ".need_" > server-repro.yml
sed -r 's/^(\s*)(tags:.*)$/\1when: manual\n\1\2/' server-repro.yml > server-repro-manual.yml
needs: []
only:
- /^feature-.*s.*\/.*$/
artifacts:
paths:
- server-repro.yml
- server-repro-manual.yml
generate_client_reproducibility_yml:
stage: test_tools
variables:
REPEAT: 10
script:
- tools/repeat-ci.sh browser/.gitlab-ci.yml $REPEAT .gitlab-ci.yml | grep -v ".need_" > client-repro.yml
needs: []
only:
- /^feature-.*c.*\/.*$/
artifacts:
paths:
- client-repro.yml
server_reproducibility:
stage: test_cypress_server
needs: [generate_server_reproducibility_yml]
trigger:
include:
- artifact: server-repro.yml
job: generate_server_reproducibility_yml
strategy: depend
when: manual
only:
- /^feature-.*s.*\/.*$/
allow_failure: true
server_reproducibility_manual:
stage: test_cypress_server
needs: [generate_server_reproducibility_yml]
trigger:
include:
- artifact: server-repro-manual.yml
job: generate_server_reproducibility_yml
strategy: depend
when: manual
only:
- /^feature-.*s.*\/.*$/
allow_failure: true
client_reproducibility:
stage: test_cypress_client
needs: [generate_client_reproducibility_yml]
trigger:
include:
- artifact: client-repro.yml
job: generate_client_reproducibility_yml
strategy: depend
when: manual
only:
- /^feature-.*c.*\/.*$/
allow_failure: true