make jenkins and travis use a common script

This commit is contained in:
Richard van der Hoff 2017-11-14 19:18:58 +00:00
parent b0a17e957d
commit 427e0bb83b
3 changed files with 8 additions and 28 deletions

View file

@ -1,25 +1,3 @@
#! /bin/bash
#!/bin/sh
set -ex
virtualenv env
. env/bin/activate
pip install -r scripts/requirements.txt
# 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)
# build the spec and collect the supporting docs for matrix.org
./scripts/generate-matrix-org-assets
exec ./scripts/test-and-build.sh