2 # Copyright © 2021 Orange
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
27 - title "Running cla authors retrieval..."
29 - RESULT=$(.ci/check-cla-for-multiple-commits.sh 2>&1) || exit_code=$?
30 - handle_test_result $exit_code "$RESULT"
34 - if: $CI_MERGE_REQUEST_ID
44 - title "Running pylint check..."
46 - RESULT=$(find kubernetes/ TOSCA/ docs/ -name '*.py' -print0 | xargs -0 pylint 2>&1) || exit_code=$?
47 - handle_test_result $exit_code "$RESULT"
51 - if: $CI_MERGE_REQUEST_ID
60 name: jorisroovers/gitlint:0.16.0
64 - title "*** Running gitlint..."
66 - RESULT=$(gitlint 2>&1) || exit_code=$?
67 - handle_test_result $exit_code "$RESULT"
71 - if: $CI_MERGE_REQUEST_ID
77 name: alpine/git:v2.24.1
81 - title "Running trailing whitespaces check..."
83 - RESULT=$(.ci/find-trailing-whitespaces.sh 2>&1) || exit_code=$?
84 - handle_test_result $exit_code "$RESULT"
88 - if: $CI_MERGE_REQUEST_ID
93 name: alpine/git:v2.24.1
97 - title "Running tabs check..."
99 - RESULT=$(.ci/find-tabs.sh 2>&1) || exit_code=$?
100 - handle_test_result $exit_code "$RESULT"
104 - if: $CI_MERGE_REQUEST_ID
109 name: testthedocs/ttd-doc8
113 - title "Running doc8 check..."
115 - RESULT=$(doc8 docs 2>&1) || exit_code=$?
116 - handle_test_result $exit_code "$RESULT"
119 - if: $CI_MERGE_REQUEST_ID
126 documentation:link-check:
133 - pip install -r requirements.txt
134 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
135 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
136 - title "Running documentation links check..."
138 - RESULT=$(sphinx-build -W -b linkcheck -d /tmp/doctrees ./docs/ ./docs/_build/linkcheck 2>&1) || exit_code=$?
139 - handle_test_result $exit_code "$RESULT"
142 - if: $CI_MERGE_REQUEST_ID
149 documentation:spelling:
157 - apt-get install -qq --yes curl libenchant-2-2
158 - curl -LO https://git.onap.org/doc/plain/docs/spelling_wordlist.txt
159 - pip install -r requirements.txt
160 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
161 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
162 - title "Running documentation spelling check..."
164 - RESULT=$(sphinx-build -b spelling -d /tmp/doctrees ./docs/ ./docs/_build/spelling 2>&1) || exit_code=$?
165 - handle_test_result $exit_code "$RESULT"
168 - if: $CI_MERGE_REQUEST_ID
178 name: manabu/checkbashisms-docker
182 - title "Running bashisms check..."
184 - RESULT=$(.ci/check-bashisms 2>&1) || exit_code=$?
185 - handle_test_result $exit_code "$RESULT"
188 - if: $CI_MERGE_REQUEST_ID
194 - name: bitnami/chartmuseum:latest
197 name: alpine/helm:3.6.3
203 - apk add --no-cache make
204 - helm repo add local http://chartmuseum:8080/
205 - helm plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git
206 - title "Running helm fast check..."
209 - make all || exit_code=$?
210 - handle_test_result $exit_code ""
214 - if: $CI_MERGE_REQUEST_ID
223 - name: bitnami/chartmuseum:latest
226 name: alpine/helm:3.6.3
230 - apk add --no-cache make
231 - helm repo add local http://chartmuseum:8080/
232 - helm plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git
233 - title "Running full helm check..."
236 - make all || exit_code=$?
237 - handle_test_result $exit_code ""
243 - if: $CI_MERGE_REQUEST_ID
257 - apt-get install --yes graphviz plantuml
258 - pip install -r requirements.txt
259 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
260 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
261 - title "Running documentation build..."
263 - RESULT=$(sphinx-build -q -W -b html -d /tmp/doctrees ./docs/ ./docs/_build/html 2>&1) || exit_code=$?
264 - handle_test_result $exit_code "$RESULT"
267 - if: $CI_MERGE_REQUEST_ID
273 - documentation:spelling
274 - documentation:link-check
284 - title "Launching request for a gate"
289 - trailing-whitespaces
291 - if: $CI_MERGE_REQUEST_ID