2015-09-21 16:16:02 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
2017-08-02 17:30:49 +02:00
|
|
|
virtualenv env
|
|
|
|
|
. env/bin/activate
|
2017-10-25 10:54:21 +02:00
|
|
|
pip install -r scripts/requirements.txt
|
2017-08-02 17:30:49 +02:00
|
|
|
|
2017-08-03 01:18:07 +02:00
|
|
|
# do sanity checks on the examples and swagger
|
2015-09-21 16:16:02 +02:00
|
|
|
(cd event-schemas/ && ./check_examples.py)
|
|
|
|
|
(cd api && ./check_examples.py)
|
2015-11-30 12:22:57 +01:00
|
|
|
(cd api && npm install && node validator.js -s "client-server")
|
2015-11-19 22:08:37 +01:00
|
|
|
|
2015-11-23 18:28:58 +01:00
|
|
|
: ${GOPATH:=${WORKSPACE}/.gopath}
|
|
|
|
|
mkdir -p "${GOPATH}"
|
|
|
|
|
export GOPATH
|
|
|
|
|
go get github.com/hashicorp/golang-lru
|
|
|
|
|
go get gopkg.in/fsnotify.v1
|
|
|
|
|
|
2017-08-02 17:18:20 +02:00
|
|
|
# make sure that the scripts build
|
2015-11-23 18:28:58 +01:00
|
|
|
(cd scripts/continuserv && go build)
|
|
|
|
|
(cd scripts/speculator && go build)
|
2016-08-02 15:09:36 +02:00
|
|
|
|
2017-08-03 16:49:17 +02:00
|
|
|
# build the spec and collect the supporting docs for matrix.org
|
|
|
|
|
./scripts/generate-matrix-org-assets
|