#!/bin/bash
set -exo pipefail

util/commit-validator/validate-dco

util/commit-validator/validate-gofmt

export PGHOST=/var/run/postgresql
sudo service postgresql start

go test -race -cover ./...

sudo service postgresql stop

#!/bin/bash
set -exo pipefail

util/commit-validator/validate-dco

util/commit-validator/validate-gofmt

GIT_COMMIT=dev GIT_BRANCH=dev GIT_TAG=none GIT_DIRTY=false tup appliance/etcd discoverd
PATH=$PATH:$PWD/appliance/etcd/bin:$PWD/discoverd/bin

export PGHOST=/var/run/postgresql
sudo service postgresql start

go test -race -cover ./...

sudo service postgresql stop

Add etcd and discoverd to unit test setup.
test: Add etcd and discoverd to unit test setup.

Signed-off-by: Eric Myhre <96f164ad4d9b2b0dacf8ebee2bb1eeb3aa69adf1@flynn.io>
