forked from gopal1409/radisysgitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitalb-roboframework
81 lines (75 loc) · 2.07 KB
/
gitalb-roboframework
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
68
69
70
71
72
73
74
75
76
77
78
79
80
variables:
# project variables
RF_IMAGE: jfxs/robot-framework:latest
IMAGE_SELENIUM_GC: selenium/standalone-chrome:3
IMAGE_SELENIUM_FF: selenium/standalone-firefox:3
stages:
- rf-test
- rebot-pages
test-simple:
retry: 2
image: $RF_IMAGE
stage: rf-test
script:
- robot -v RF_SENSITIVE_VARIABLE:${GITLAB_MASKED_SENSITIVE_VARIABLE} --name simple --exclude selenium --log none --report none --outputdir reports1 tests/RF
after_script:
- sed -i -e s/"${GITLAB_MASKED_SENSITIVE_VARIABLE}"/"**MASKED**"/g reports1/output.xml
- mkdir -p reports/
- mv reports1/output.xml reports/output1.xml
artifacts:
when: always
paths:
- reports
expire_in: 1 week
test-chrome:
retry: 2
image: $RF_IMAGE
stage: rf-test
services:
- $IMAGE_SELENIUM_GC
script:
- robot -v BROWSER:Chrome -v GRID_URL:http://selenium__standalone-chrome:4444/wd/hub --name selenium-chrome --include selenium --log none --report none --outputdir reports2 tests/RF
after_script:
- mkdir -p reports/
- mv reports2/output.xml reports/output2.xml
artifacts:
when: always
paths:
- reports
expire_in: 1 week
test-firefox:
retry: 2
image: $RF_IMAGE
stage: rf-test
services:
- $IMAGE_SELENIUM_FF
script:
- robot -v BROWSER:Firefox -v GRID_URL:http://selenium__standalone-firefox:4444/wd/hub --name selenium-firefox --include selenium --log none --report none --outputdir reports3 tests/RF
after_script:
- mkdir -p reports/
- mv reports3/output.xml reports/output3.xml
artifacts:
when: always
paths:
- reports
expire_in: 1 week
pages:
only:
refs:
- master
image: $RF_IMAGE
stage: rebot-pages
dependencies:
- test-simple
- test-chrome
- test-firefox
script:
- rebot --logtitle "$CI_PROJECT_TITLE Test Log" --reporttitle "$CI_PROJECT_TITLE Test Report" --nostatusrc --outputdir public -o output.xml -x rf-xunit.xml reports/*.xml
- output2badge.sh -f public/output.xml -d public
artifacts:
paths:
- public
reports:
junit:
- public/rf-xunit.xml
when: always