2015-12-21 23:48:52 +05:30
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2015-12-21 19:23:31 +05:30
|
|
|
language: go
|
2015-12-22 04:16:17 +05:30
|
|
|
|
2015-12-21 23:48:52 +05:30
|
|
|
go:
|
|
|
|
- 1.4.3
|
2016-01-14 04:31:26 +05:30
|
|
|
- 1.5.3
|
2015-12-21 23:48:52 +05:30
|
|
|
|
|
|
|
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
|
2015-12-22 04:30:04 +05:30
|
|
|
- docker pull quay.io/coreos/postgres
|
2015-12-21 19:23:31 +05:30
|
|
|
|
|
|
|
script:
|
2015-12-22 04:30:04 +05:30
|
|
|
- docker run -d -p 127.0.0.1:15432:5432 quay.io/coreos/postgres
|
2015-12-21 19:23:31 +05:30
|
|
|
- ./test
|
2015-12-29 04:03:16 +05:30
|
|
|
- ./test-functional
|
2015-12-21 19:23:31 +05:30
|
|
|
|
2015-12-22 04:16:17 +05:30
|
|
|
after_success:
|
2016-01-14 04:31:26 +05:30
|
|
|
- if [[ "$TRAVIS_GO_VERSION" == "1.5.3" && "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then ./build-docker-push ;fi
|
2015-12-22 04:16:17 +05:30
|
|
|
|
2015-12-21 19:23:31 +05:30
|
|
|
notifications:
|
|
|
|
email: false
|