... |
... |
@@ -121,85 +121,6 @@ tests-fedora-missing-deps: |
121
|
121
|
- ${TEST_COMMAND}
|
122
|
122
|
|
123
|
123
|
|
124
|
|
-# Automatically build documentation for every commit, we want to know
|
125
|
|
-# if building documentation fails even if we're not deploying it.
|
126
|
|
-# Note: We still do not enforce a consistent installation of python3-sphinx,
|
127
|
|
-# as it will significantly grow the backing image.
|
128
|
|
-docs:
|
129
|
|
- stage: test
|
130
|
|
- script:
|
131
|
|
- - export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources"
|
132
|
|
- # Currently sphinx_rtd_theme does not support Sphinx >1.8, this breaks search functionality
|
133
|
|
- - pip3 install sphinx==1.7.9
|
134
|
|
- - pip3 install sphinx-click
|
135
|
|
- - pip3 install sphinx_rtd_theme
|
136
|
|
- - make BST_FORCE_SESSION_REBUILD=1 -C doc
|
137
|
|
- - cd ../..
|
138
|
|
- - mv dist/buildstream/doc/build/html public
|
139
|
|
- except:
|
140
|
|
- - schedules
|
141
|
|
- artifacts:
|
142
|
|
- paths:
|
143
|
|
- - public/
|
144
|
|
-
|
145
|
|
-.overnight-tests: &overnight-tests-template
|
146
|
|
- stage: test
|
147
|
|
- variables:
|
148
|
|
- BST_EXT_URL: git+https://gitlab.com/BuildStream/bst-external.git
|
149
|
|
- BST_EXT_REF: 573843768f4d297f85dc3067465b3c7519a8dcc3 # 0.7.0
|
150
|
|
- FD_SDK_REF: 612f66e218445eee2b1a9d7dd27c9caba571612e # freedesktop-sdk-18.08.19-54-g612f66e2
|
151
|
|
- before_script:
|
152
|
|
- - |
|
153
|
|
- mkdir -p "${HOME}/.config"
|
154
|
|
- cat <<EOF >"${HOME}/.config/buildstream.conf"
|
155
|
|
- scheduler:
|
156
|
|
- fetchers: 2
|
157
|
|
- EOF
|
158
|
|
- - (cd dist && ./unpack.sh && cd buildstream && pip3 install .)
|
159
|
|
- - pip3 install --user -e ${BST_EXT_URL}@${BST_EXT_REF}#egg=bst_ext
|
160
|
|
- - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
|
161
|
|
- - git -C freedesktop-sdk checkout ${FD_SDK_REF}
|
162
|
|
- only:
|
163
|
|
- - schedules
|
164
|
|
-
|
165
|
|
-overnight-tests:
|
166
|
|
- <<: *overnight-tests-template
|
167
|
|
- script:
|
168
|
|
- - make -C freedesktop-sdk
|
169
|
|
- tags:
|
170
|
|
- - overnight-tests
|
171
|
|
-
|
172
|
|
-overnight-tests-no-cache:
|
173
|
|
- <<: *overnight-tests-template
|
174
|
|
- script:
|
175
|
|
- - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf
|
176
|
|
- - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf
|
177
|
|
- - make -C freedesktop-sdk
|
178
|
|
- tags:
|
179
|
|
- - overnight-tests
|
180
|
|
-
|
181
|
|
-# Check code quality with gitlab's built-in feature.
|
182
|
|
-#
|
183
|
|
-code_quality:
|
184
|
|
- image: docker:stable
|
185
|
|
- stage: test
|
186
|
|
- variables:
|
187
|
|
- DOCKER_DRIVER: overlay2
|
188
|
|
- allow_failure: true
|
189
|
|
- services:
|
190
|
|
- - docker:stable-dind
|
191
|
|
- script:
|
192
|
|
- - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
193
|
|
- - docker run
|
194
|
|
- --env SOURCE_CODE="$PWD"
|
195
|
|
- --volume "$PWD":/code
|
196
|
|
- --volume /var/run/docker.sock:/var/run/docker.sock
|
197
|
|
- "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
198
|
|
- except:
|
199
|
|
- - schedules
|
200
|
|
- artifacts:
|
201
|
|
- paths: [gl-code-quality-report.json]
|
202
|
|
-
|
203
|
124
|
#####################################################
|
204
|
125
|
# Post stage #
|
205
|
126
|
#####################################################
|