2017-10-31 14:03:13 +00:00
|
|
|
dist: trusty
|
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.9
|
|
|
|
services:
|
|
|
|
- postgresql
|
2017-12-07 15:58:06 +00:00
|
|
|
addons:
|
|
|
|
postgresql: "9.6"
|
2018-01-03 17:23:43 +00:00
|
|
|
|
2018-01-03 18:42:48 +00:00
|
|
|
before_install:
|
|
|
|
# dep
|
2018-01-03 17:23:43 +00:00
|
|
|
- go get -u github.com/golang/dep/cmd/dep
|
2018-01-03 18:42:48 +00:00
|
|
|
# ginkgo
|
2018-01-03 17:23:43 +00:00
|
|
|
- go get -u github.com/onsi/ginkgo/ginkgo
|
2018-01-03 18:42:48 +00:00
|
|
|
# migrate
|
|
|
|
- go get -u -d github.com/mattes/migrate/cli github.com/lib/pq
|
|
|
|
- sudo $(which go) build -tags 'postgres' -o /usr/local/bin/migrate github.com/mattes/migrate/cli
|
|
|
|
- sudo -u postgres createdb vulcanize_private
|
|
|
|
# geth
|
2017-11-29 20:17:57 +00:00
|
|
|
- wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.7.2-1db4ecdc.tar.gz
|
|
|
|
- tar -xzf geth-linux-amd64-1.7.2-1db4ecdc.tar.gz
|
|
|
|
- sudo cp geth-linux-amd64-1.7.2-1db4ecdc/geth /usr/local/bin
|
2018-01-03 18:42:48 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- dep ensure
|
|
|
|
|
|
|
|
before_script:
|
2017-11-29 20:17:57 +00:00
|
|
|
- ./scripts/setup
|
|
|
|
- nohup ./scripts/start_private_blockchain </dev/null &
|
2018-01-25 21:46:55 +00:00
|
|
|
- make migrate HOST_NAME=localhost NAME=vulcanize_private PORT=5432
|
2018-01-03 17:23:43 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- ginkgo -r
|
|
|
|
|
2017-10-31 14:03:13 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|