You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matrix-spec/jenkins.sh

34 lines
697 B
Bash

#! /bin/bash
set -ex
virtualenv env
. env/bin/activate
pip install \
docutils \
pygments \
Jinja2 \
jsonschema \
PyYAML
# do sanity checks on the examples and swagger
(cd event-schemas/ && ./check_examples.py)
(cd api && ./check_examples.py)
(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)
# generate bits of the site
./scripts/generate-site
# create a tarball of the generated site
tar -czf site.tar.gz _site