Move and more aptly name check_examples.py scripts

pull/977/head
Andrew Morgan 4 years ago committed by Richard van der Hoff
parent 7fed40ad04
commit b8dafe86f4

@ -5,9 +5,10 @@ gendoc: &gendoc
scripts/gendoc.py scripts/gendoc.py
genswagger: &genswagger genswagger: &genswagger
name: Generate the swagger name: Validate sources and generate swagger json
command: | command: |
source /env/bin/activate source /env/bin/activate
scripts/check-swagger-sources.py
scripts/dump-swagger.py scripts/dump-swagger.py
buildswaggerui: &buildswaggerui buildswaggerui: &buildswaggerui
@ -27,10 +28,7 @@ checkexamples: &checkexamples
name: Check Event Examples name: Check Event Examples
command: | command: |
source /env/bin/activate source /env/bin/activate
cd event-schemas scripts/check-event-schema-examples.py
./check_examples.py
cd ../api
./check_examples.py
genmatrixassets: &genmatrixassets genmatrixassets: &genmatrixassets
name: Generate/Verify matrix.org assets name: Generate/Verify matrix.org assets

@ -14,9 +14,9 @@ pip --version
pip install -r scripts/requirements.txt pip install -r scripts/requirements.txt
# do sanity checks on the examples and swagger # do sanity checks on the examples and swagger
(cd event-schemas/ && ./check_examples.py) scripts/check-event-schema-examples.py
(cd api && ./check_examples.py) scripts/check-swagger-sources.py
(cd api && npm install && node validator.js -s "client-server") (cd event-schemas/api && npm install && node validator.js -s "client-server")
: ${GOPATH:=${WORKSPACE}/.gopath} : ${GOPATH:=${WORKSPACE}/.gopath}
mkdir -p "${GOPATH}" mkdir -p "${GOPATH}"

Loading…
Cancel
Save