From 4e6b9a19ee063e52f4bc30d84a67b97dc1e52bad Mon Sep 17 00:00:00 2001 From: Eric Mann Date: Mon, 8 May 2017 13:36:14 -0700 Subject: [PATCH] Add missing config file bootstrap --- .travis.yml | 1 + travis-install-configfile.sh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 travis-install-configfile.sh diff --git a/.travis.yml b/.travis.yml index 08523cd..45bca8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ install: - cd $GOPATH/src/github.com/Masterminds/glide && git checkout 84607742b10f492430762d038e954236bbaf23f7 && go install && cd - - glide install - go get github.com/mattn/goveralls + - ./travis-install-configfile.sh script: - go test -v -covermode=count -coverprofile=coverage.out --tags integration diff --git a/travis-install-configfile.sh b/travis-install-configfile.sh new file mode 100755 index 0000000..0234ba6 --- /dev/null +++ b/travis-install-configfile.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# The purpose of this file is to install a default +# e3db profile configuration so tests can execute +# against a live server. + +set -e + +# Check if the config is already set +if [ ! -d "$HOME/.tozny/integration-test" ]; then + mkdir -p "$HOME/.tozny/integration-test" +fi + +cat > "$HOME/.tozny/integration-test/e3db.json" <