forked from apache/groovy-geb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
155 lines (142 loc) · 3.12 KB
/
.gitlab-ci.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
image: gebish/ci:v1
variables:
GRADLE_USER_HOME: .gradle-home
stages:
- main check
- secondary checks
- first cross browser
- second cross browser
- upload
- trigger builds
modules:
stage: main check
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -p module -Pci check --continue
compatibility:
stage: main check
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -p compatibility -Pci check --continue
integrations:
stage: secondary checks
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -p integration -Pci check --continue
manual:
stage: secondary checks
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- Xvfb :99 -screen 1 1280x1024x16 -nolisten tcp -fbdir /var/run > /dev/null 2>&1 &
- export DISPLAY=:99
- ./gradlew --no-daemon -Pci :doc:manual-snippets:check :doc:manual:build
site:
stage: secondary checks
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -p doc/site -Pci check
saucelabs:
stage: first cross browser
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -Pci allSauceLabsTests
non-ie:
stage: first cross browser
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -Pci nonIeBrowserStackTests
ie:
stage: second cross browser
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
artifacts:
when: always
expire_in: 4 weeks
paths:
- build/reports
script:
- ./gradlew --no-daemon -Pci ieBrowserStackTests
upload:
only:
- master
stage: upload
cache:
key: "$CI_JOB_NAME"
paths:
- .gradle-home
script:
- ./gradlew --no-daemon -Pci uploadArchives
publish-site:
only:
- master
stage: upload
script:
- git remote add heroku https://heroku:[email protected]/gebish.git
- git push -f heroku master
triggger-example-projects:
only:
- master
stage: trigger builds
script:
- "curl -X POST -F token=f4906c9c437605db34f866ccaa7dfb -F ref=latest https://gitlab.com/api/v4/projects/3302923/trigger/pipeline"
- "curl -X POST -F token=8ee359a96d5892d6d36f5a7f2482ed -F ref=latest https://gitlab.com/api/v4/projects/3300893/trigger/pipeline"
- "curl -X POST -F token=23604413c25eb05e17eea588d06d2e -F ref=latest https://gitlab.com/api/v4/projects/3264749/trigger/pipeline"