matrix-spec/jenkins.sh

34 lines
683 B
Bash
Raw Normal View History

#! /bin/bash
set -ex
2017-08-02 17:30:49 +02:00
virtualenv env
. env/bin/activate
pip install \
docutils \
pygments \
Jinja2 \
2017-08-02 17:32:19 +02:00
jsonschema \
PyYAML
2017-08-02 17:30:49 +02:00
(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}
mkdir -p "${GOPATH}"
export GOPATH
go get github.com/hashicorp/golang-lru
go get gopkg.in/fsnotify.v1
# make sure that the scripts build
(cd scripts/continuserv && go build)
(cd scripts/speculator && go build)
2016-08-02 15:09:36 +02:00
# update the jekyll site
./scripts/generate-jekyll.sh
# create a tarball of the generated site
tar -czf site.tar.gz _site