File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 4
4
language : bash
5
5
6
6
services :
7
+ - docker
7
8
8
9
before_install :
9
-
10
+
10
11
script :
11
12
tools/verify-all.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Copyright 2017 The authors
3
+ # Copyright 2017 - 2019 The authors
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # This script will scan all md (markdown) files for bad references.
18
- # It will look for strings of the form [...](...) and make sure that
19
- # the (...) points to either a valid file in the source tree or, in the
20
- # case of it being an http url, it'll make sure we don't get a 404.
17
+ # This script runs all the verification checks, both for CI and development
21
18
#
22
- # Usage: verify-links.sh [ dir | file ... ]
23
- # default arg is root of our source tree
19
+ # Usage: verify-all.sh
24
20
25
21
set -o errexit
26
22
set -o nounset
27
23
set -o pipefail
28
24
29
- REPODIR=$( dirname " ${BASH_SOURCE} " ) /..
25
+ REPODIR=" $( cd " $( dirname " ${BASH_SOURCE[0] } " ) " /..; pwd -P ) "
30
26
31
27
rc=0
32
28
@@ -45,4 +41,10 @@ echo Verify description json fields
45
41
echo Verify spaces after periods
46
42
" ${REPODIR} /tools/verify-spaces.sh" -v " ${REPODIR} " /spec.md " ${REPODIR} " /profile.md " ${REPODIR} " /compatibility.md || rc=1
47
43
44
+ echo Verify OpenAPI
45
+ docker run --rm -v " ${REPODIR} " :/local openapitools/openapi-generator-cli validate -i /local/openapi.yaml || rc=1
46
+
47
+ echo Verify Swagger
48
+ docker run --rm -v " ${REPODIR} " :/local openapitools/openapi-generator-cli validate -i /local/swagger.yaml || rc=1
49
+
48
50
exit $rc
You can’t perform that action at this time.
0 commit comments