Skip to content

Commit

Permalink
Add missing config file bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Mann committed May 8, 2017
1 parent 60e2c58 commit 4e6b9a1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions travis-install-configfile.sh
Original file line number Diff line number Diff line change
@@ -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" <<EOT
{
"version":1,
"api_url":"${API_URL}",
"api_key_id":"${API_KEY_ID}",
"api_secret":"${API_SECRET}",
"client_id":"${CLIENT_ID}",
"client_email":"${CLIENT_EMAIL}",
"public_key":"${PUBLIC_KEY}",
"private_key":"${PRIVATE_KEY}"
}
EOT

0 comments on commit 4e6b9a1

Please sign in to comment.