-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update boulder release to test against a more recent version. `release-2016-07-14` does not work due to "E135725 boulder-ca [AUDIT] Panic caused by err: runtime error: invalid memory address or nil pointer dereference". For the current travis tursty images we must declare that we need rabbitmq as service. We build with go 1.6 - we got some compilation errors with go 1.5. We use prebuild debs for protobuf (from 5-james-t/protobuf-ppa). We reduces the testing time by 1-2 minutes, as we no longer need to compile protobuf ourself during setup.
- Loading branch information
Showing
5 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
#!/bin/bash | ||
set -ex | ||
eval "$(gimme 1.5)" | ||
eval "$(gimme 1.6)" | ||
export GOPATH=~/build/go | ||
export PATH=$PATH:$GOPATH/bin | ||
export PATH=$PATH:$GOPATH/bin:$GOPATH/src/github.com/letsencrypt/boulder/bin:~/bin | ||
mkdir -p $GOPATH/src/github.com/letsencrypt/ | ||
git clone git://github.com/letsencrypt/boulder.git --branch release-2015-12-07 $GOPATH/src/github.com/letsencrypt/boulder | ||
git clone git://github.com/letsencrypt/boulder.git --branch hotfixes/2016-06-30 $GOPATH/src/github.com/letsencrypt/boulder | ||
cd $GOPATH/src/github.com/letsencrypt/boulder | ||
sed -i -e 's/root@tcp/boulder:test@tcp/' policy/_db/dbconf.yml sa/_db/dbconf.yml | ||
sed -i -e 's/-u root/-u boulder -ptest/' test/create_db.sh | ||
./test/setup.sh | ||
go install -v ./... | ||
|
||
go get -v \ | ||
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 | ||
|
||
make GO_BUILD_FLAGS='' | ||
|
||
go run cmd/rabbitmq-setup/main.go -server amqp://boulder-rabbitmq | ||
|
||
./test/create_db.sh | ||
|
||
nohup python2.7 start.py & | ||
sleep 2 | ||
cat nohup.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
#!/bin/bash | ||
set -ex | ||
# add ppa for mariadb and rabbitmq (needs newer versions) | ||
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db | ||
echo 'deb http://mirror2.hs-esslingen.de/mariadb/repo/10.0/ubuntu trusty main' > /etc/apt/sources.list.d/mariadb.list | ||
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db 0xe49303a769479fee | ||
echo 'deb http://sfo1.mirrors.digitalocean.com//mariadb/repo/10.1/ubuntu trusty main' > /etc/apt/sources.list.d/mariadb.list | ||
echo 'deb http://ppa.launchpad.net/5-james-t/protobuf-ppa/ubuntu trusty main' > /etc/apt/sources.list.d/protobuf.list | ||
# update package list | ||
apt-get update | ||
# install packages | ||
apt-get install -yV libltdl-dev mariadb-server mariadb-server-10.0 python2.7 | ||
apt-get install -yV libltdl-dev mariadb-server mariadb-server-10.1 python2.7 libprotobuf-dev protobuf-compiler | ||
# configure mariadb | ||
# todo | ||
mysql -u root <<EOF | ||
CREATE USER boulder IDENTIFIED by "test"; | ||
GRANT ALL PRIVILEGES ON *.* TO 'boulder'@'%' with grant option; | ||
FLUSH PRIVILEGES; | ||
EOF | ||
# define boulder needed hostnames | ||
sed --in-place -e '/^127.0.0.1/ s/$/ boulder boulder-mysql boulder-rabbitmq/' /etc/hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters