language: go

go:
  - 1.8.1

services:
  - docker

after_success:
  - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - export TAG=`if [ "$TRAVIS_PULL_REQUEST_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi`
  - docker run -v "$(pwd):/src" -v /var/run/docker.sock:/var/run/docker.sock centurylink/golang-builder collisdigital/go-launch-a-survey:$TAG
  - docker push collisdigital/go-launch-a-survey:$TAG
language: go

go:
  - 1.8.1

services:
  - docker

after_success:
  - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  - export TAG=`if [ "$TRAVIS_PULL_REQUEST_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi`
  - docker run -v "$(pwd):/src" -v /var/run/docker.sock:/var/run/docker.sock centurylink/golang-builder collisdigital/go-launch-a-survey:$TAG
  - docker push collisdigital/go-launch-a-survey:$TAG

branches:
    only:
        - master
Enable Travis build on merge to master
Enable Travis build on merge to master
