language: go
sudo: required
services: 
  - docker
go:
  - 1.6
install:
  - go get github.com/Masterminds/glide
  - glide install
script:
  - go test `go list ./... | grep -v '/vendor/'`
after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    GOOS=linux GOARCH=amd64 go build;
    docker build -t tpbowden/ingress-router:latest .;
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push tpbowden/ingress-router:latest;
    fi

language: go
sudo: required
services: 
  - docker
go:
  - 1.6
install:
  - go get github.com/Masterminds/glide
  - glide install
script:
  - go test `go list ./... | grep -v '/vendor/'`
after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    GOOS=linux GOARCH=amd64 go build;
    docker build -t tpbowden/ingress-router:latest .;
    docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push tpbowden/ingress-router:latest;
    fi

Revert "remove email from docker login"
Revert "remove email from docker login"

This reverts commit ea4634c5c10ac2fc7773bf95e68d32a4fdb2a41e.
