From 3fc0e294956d493b8831e5868f8d1669d9121e3f Mon Sep 17 00:00:00 2001 From: Chris Bandy Date: Sun, 12 Oct 2014 04:22:49 +0000 Subject: [PATCH] Move environment variables to the env configuration --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b8ffefcd..bf00af9b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,11 @@ before_install: - sudo /etc/init.d/postgresql restart env: + global: + - PGUSER=postgres + - PQGOSSLTESTS=1 + - PQSSLCERTTEST_CERT=$PWD/certs/postgresql.crt + - PQSSLCERTTEST_KEY=$PWD/certs/postgresql.key matrix: - PGVERSION=9.3 - PGVERSION=9.2 @@ -49,7 +54,7 @@ env: - PGVERSION=8.4 script: - - env PQSSLCERTTEST_KEY=$PWD/certs/postgresql.key PQSSLCERTTEST_CERT=$PWD/certs/postgresql.crt PQGOSSLTESTS=1 PGUSER=postgres go test -v ./... + - go test -v ./... before_script: - psql -c 'create database pqgotest' -U postgres