Commit ace8253c authored by Eric Chiang's avatar Eric Chiang

Merge pull request #279 from dghubble/master

travis: Change from after_success script to travis deploy
parents bfe53e0b cf0c2afa
...@@ -5,24 +5,30 @@ services: ...@@ -5,24 +5,30 @@ services:
language: go language: go
go: go:
- 1.4.3 - 1.4.3
- 1.5.3 - 1.5.3
env: env:
- DEX_TEST_DSN="postgres://postgres@127.0.0.1:15432/postgres?sslmode=disable" ISOLATED=true - DEX_TEST_DSN="postgres://postgres@127.0.0.1:15432/postgres?sslmode=disable" ISOLATED=true
install: install:
- go get golang.org/x/tools/cmd/cover - go get golang.org/x/tools/cmd/cover
- go get golang.org/x/tools/cmd/vet - go get golang.org/x/tools/cmd/vet
- docker pull quay.io/coreos/postgres - docker pull quay.io/coreos/postgres
script: script:
- docker run -d -p 127.0.0.1:15432:5432 quay.io/coreos/postgres - docker run -d -p 127.0.0.1:15432:5432 quay.io/coreos/postgres
- ./test - ./test
- ./test-functional - ./test-functional
after_success: deploy:
- if [[ "$TRAVIS_GO_VERSION" == "1.5.3" && "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" ]]; then ./build-docker-push ;fi provider: script
script: build-docker-push
skip_cleanup: true
on:
branch: master
go: '1.5.3'
condition: "$TRAVIS_PULL_REQUEST = false"
notifications: notifications:
email: false email: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment