From 095cb1e7b78ae366adcd252b755fc35518905c5d Mon Sep 17 00:00:00 2001 From: Matt K <1036969+mkrump@users.noreply.github.com> Date: Wed, 3 Jan 2018 12:42:48 -0600 Subject: [PATCH] Update travis build to exactly mimic local build (#120) --- .travis.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ce5009d4..5b51065f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,19 +7,30 @@ services: addons: postgresql: "9.6" -install: +before_install: + # godo + - go get -u gopkg.in/godo.v2/cmd/godo + # dep - go get -u github.com/golang/dep/cmd/dep - dep ensure + # ginkgo - go get -u github.com/onsi/ginkgo/ginkgo - -before_script: + # 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 - 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 + +install: + - dep ensure + +before_script: - ./scripts/setup - nohup ./scripts/start_private_blockchain