sudo: required
language: go

go:
  - 1.6

services:
  - docker

install:
  - wget https://github.com/Masterminds/glide/releases/download/0.9.1/glide-0.9.1-linux-amd64.tar.gz
  - tar xvzf glide-0.9.1-linux-amd64.tar.gz
  - sudo cp linux-amd64/glide /usr/bin/glide
  - cd "$GOPATH/src/github.com/ibrt/go-oauto/oauto" && glide install
  - go generate github.com/ibrt/go-oauto/oauto/standalone
  - docker run -p 10000:10000 -p 4444:4444 -d oauto:latest

script: go test -v github.com/ibrt/go-oauto/oauto


sudo: required
language: go

go:
  - 1.6

services:
  - docker

install:
  - wget https://github.com/Masterminds/glide/releases/download/0.9.1/glide-0.9.1-linux-amd64.tar.gz
  - tar xvzf glide-0.9.1-linux-amd64.tar.gz
  - sudo cp linux-amd64/glide /usr/bin/glide
  - cd "$GOPATH/src/github.com/ibrt/go-oauto/oauto" && glide install
  - go generate github.com/ibrt/go-oauto/oauto/standalone
  - docker run -p 10000:10000 -p 4444:4444 -d oauto

script: go test -v github.com/ibrt/go-oauto/oauto

after_success:
  - docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USER_NAME" -p "$DOCKER_PASS"
  - docker tag oauto:latest ibrt/oauto:"$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo "$TRAVIS_BRANCH"; fi)"
  - docker push ibrt/oauto
Update TravisCI configuration: push to Docker Hub.
Update TravisCI configuration: push to Docker Hub.
