boulder/test/setup.sh

32 lines
847 B
Bash
Executable File

#!/bin/bash
#
# Fetch dependencies of Boulder that are necessary for development or testing,
# and configure database
#
set -ev
go get \
bitbucket.org/liamstask/goose/cmd/goose \
github.com/golang/lint/golint \
github.com/golang/mock/mockgen \
github.com/golang/protobuf/proto \
github.com/golang/protobuf/protoc-gen-go \
github.com/jsha/listenbuddy \
github.com/kisielk/errcheck \
github.com/mattn/goveralls \
github.com/modocache/gover \
github.com/tools/godep \
golang.org/x/tools/cover \
golang.org/x/tools/cmd/stringer &
(curl -sL https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | \
tar -xzv &&
cd protobuf-2.6.1 && ./configure --prefix=$HOME && make && make install) &
# Wait for all the background commands to finish.
wait
# Create the database and roles
./test/create_db.sh