diff --git a/.travis.yml b/.travis.yml index 0769863058f1..53b3a9adf9d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,19 +7,14 @@ language: go go: - "1.11" addons: - postgresql: "10" - apt: - packages: - - postgresql-10 - - postgresql-client-10 + postgresql: 9.6 # add TF_CONSUL_TEST=1 to run consul tests # they were causing timouts in travis # add TF_ETCDV3_TEST=1 to run etcdv3 tests # if added, TF_ETCDV3_ENDPOINTS must be set to a comma-separated list of (insecure) etcd endpoints against which to test env: - - CONSUL_VERSION=0.7.5 GOMAXPROCS=4 - - DATABASE_URL=postgres://localhost/terraform_backend_pg_test?sslmode=disable + - CONSUL_VERSION=0.7.5 GOMAXPROCS=4 DATABASE_URL=postgres://localhost/terraform_backend_pg_test?sslmode=disable # Fetch consul for the backend and provider tests before_install: @@ -39,7 +34,7 @@ install: before_script: - git config --global url.https://github.com/.insteadOf ssh://git@github.com/ -- psql -c 'create database terraform_backend_pg_test;' -U postgres +- psql --command 'create database terraform_backend_pg_test;' --host localhost --username postgres script: - make vendor-status