Build the spec as part of the build

This commit is contained in:
Richard van der Hoff 2017-08-03 00:18:07 +01:00
parent 0af06291fe
commit 8a66b1a68b
4 changed files with 43 additions and 28 deletions

View file

@ -11,9 +11,9 @@ pip install \
jsonschema \
PyYAML
# do sanity checks on the examples and swagger
(cd event-schemas/ && ./check_examples.py)
(cd api && ./check_examples.py)
(cd scripts && ./gendoc.py -v)
(cd api && npm install && node validator.js -s "client-server")
: ${GOPATH:=${WORKSPACE}/.gopath}
@ -26,8 +26,8 @@ go get gopkg.in/fsnotify.v1
(cd scripts/continuserv && go build)
(cd scripts/speculator && go build)
# update the jekyll site
./scripts/generate-jekyll.sh
# generate bits of the site
./scripts/generate-site
# create a tarball of the generated site
tar -czf site.tar.gz _site