Skip to content

Commit

Permalink
Move environment variables to the env configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cbandy committed Oct 12, 2014
1 parent 585ef5d commit 3fc0e29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3fc0e29

Please sign in to comment.