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.
25 - title "Running cla authors retrieval..."
27 - RESULT=$(.ci/check-cla-for-multiple-commits.sh 2>&1) || exit_code=$?
28 - handle_test_result $exit_code "$RESULT"
32 - if: $CI_MERGE_REQUEST_ID
40 - title "Running pylint check..."
42 - RESULT=$(find kubernetes/ TOSCA/ docs/ -name '*.py' -print0 | xargs -0 pylint 2>&1) || exit_code=$?
43 - handle_test_result $exit_code "$RESULT"
47 - if: $CI_MERGE_REQUEST_ID
55 image: jorisroovers/gitlint:0.16.0
58 - title "*** Running gitlint..."
60 - RESULT=$(gitlint 2>&1) || exit_code=$?
61 - handle_test_result $exit_code "$RESULT"
65 - if: $CI_MERGE_REQUEST_ID
70 image: alpine/git:v2.24.1
73 - title "Running trailing whitespaces check..."
75 - RESULT=$(.ci/find-trailing-whitespaces.sh 2>&1) || exit_code=$?
76 - handle_test_result $exit_code "$RESULT"
80 - if: $CI_MERGE_REQUEST_ID
84 image: alpine/git:v2.24.1
87 - title "Running tabs check..."
89 - RESULT=$(.ci/find-tabs.sh 2>&1) || exit_code=$?
90 - handle_test_result $exit_code "$RESULT"
94 - if: $CI_MERGE_REQUEST_ID
98 image: testthedocs/ttd-doc8
101 - title "Running doc8 check..."
103 - RESULT=$(doc8 docs 2>&1) || exit_code=$?
104 - handle_test_result $exit_code "$RESULT"
107 - if: $CI_MERGE_REQUEST_ID
114 documentation:link-check:
119 - pip install -r requirements.txt
120 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
121 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
122 - title "Running documentation links check..."
124 - RESULT=$(sphinx-build -W -b linkcheck -d /tmp/doctrees ./docs/ ./docs/_build/linkcheck 2>&1) || exit_code=$?
125 - handle_test_result $exit_code "$RESULT"
128 - if: $CI_MERGE_REQUEST_ID
135 documentation:spelling:
141 - apt-get install -qq --yes curl libenchant-2-2
142 - curl -LO https://git.onap.org/doc/plain/docs/spelling_wordlist.txt
143 - pip install -r requirements.txt
144 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
145 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
146 - title "Running documentation spelling check..."
148 - RESULT=$(sphinx-build -b spelling -d /tmp/doctrees ./docs/ ./docs/_build/spelling 2>&1) || exit_code=$?
149 - handle_test_result $exit_code "$RESULT"
152 - if: $CI_MERGE_REQUEST_ID
161 image: manabu/checkbashisms-docker
164 - title "Running bashisms check..."
166 - RESULT=$(.ci/check-bashisms 2>&1) || exit_code=$?
167 - handle_test_result $exit_code "$RESULT"
170 - if: $CI_MERGE_REQUEST_ID
176 - name: bitnami/chartmuseum:latest
178 image: alpine/helm:3.6.3
183 - apk add --no-cache make
184 - helm repo add local http://chartmuseum:8080/
185 - helm plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git
186 - title "Running helm fast check..."
189 - make all || exit_code=$?
190 - handle_test_result $exit_code ""
194 - if: $CI_MERGE_REQUEST_ID
203 - name: bitnami/chartmuseum:latest
205 image: alpine/helm:3.6.3
208 - apk add --no-cache make
209 - helm repo add local http://chartmuseum:8080/
210 - helm plugin install --version v0.9.0 https://github.com/chartmuseum/helm-push.git
211 - title "Running full helm check..."
214 - make all || exit_code=$?
215 - handle_test_result $exit_code ""
221 - if: $CI_MERGE_REQUEST_ID
233 - apt-get install --yes graphviz plantuml
234 - pip install -r requirements.txt
235 -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt
236 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
237 - title "Running documentation build..."
239 - RESULT=$(sphinx-build -q -W -b html -d /tmp/doctrees ./docs/ ./docs/_build/html 2>&1) || exit_code=$?
240 - handle_test_result $exit_code "$RESULT"
243 - if: $CI_MERGE_REQUEST_ID
249 - documentation:spelling
250 - documentation:link-check
258 - title "Launching request for a gate"
263 - trailing-whitespaces
265 - if: $CI_MERGE_REQUEST_ID