From 5dd08a8dd44de6d3556366a7438d921869481d32 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Mon, 21 Dec 2015 10:18:52 -0800 Subject: [PATCH] *: add functional tests to travis config --- .travis.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index e920b053..36126abb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,23 @@ +sudo: required +services: + - docker + language: go -matrix: - include: - - go: 1.4.3 - install: - - go get golang.org/x/tools/cmd/cover - - go get golang.org/x/tools/cmd/vet - - go: 1.5.2 - install: true +go: + - 1.4.3 + - 1.5.2 + +env: + - DEX_TEST_DSN="postgres://postgres@127.0.0.1:15432/postgres?sslmode=disable" ISOLATED=true + +install: + - go get golang.org/x/tools/cmd/cover + - go get golang.org/x/tools/cmd/vet + - docker pull quay.io/ericchiang/postgres script: + - docker run -d -p 127.0.0.1:15432:5432 quay.io/ericchiang/postgres - ./test notifications: email: false - -sudo: false