language: go

sudo: required
dist: trusty

before_install:
  - cd $HOME
  - mv $HOME/gopath/src/github.com/ChannelMeter $HOME/gopath/src/github.com/channelmeter
  - TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/channelmeter/vault-gatekeeper-mesos
  - cd $HOME/gopath/src/github.com/channelmeter/vault-gatekeeper-mesos

#cache:
#  directories:

services:
  - docker

env:
  global:
    - GOMAXPROCS=2
    - PATH=$PATH:$HOME/.minimesos/bin

go:
  - 1.6

install:
  - curl -sSL https://minimesos.org/install | sh
  - go get .

script:
  - set -e
# TODO: reenable
#  - minimesos up
  - docker run -d -p 8200:8200 --hostname vault --name vault vault server -dev -dev-root-token-id=vault-gatekeeper-test-token-id
  - bash integration.sh
  - go vet .

after_script:
# TODO: reenable
#  - minimesos destroy
  - docker stop vault
  - docker rm vault

#notifications:
#  - email: false
language: go

sudo: required
dist: trusty

before_install:
  - cd $HOME
  - mv $HOME/gopath/src/github.com/ChannelMeter $HOME/gopath/src/github.com/channelmeter
  - TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/channelmeter/vault-gatekeeper-mesos
  - cd $HOME/gopath/src/github.com/channelmeter/vault-gatekeeper-mesos

#cache:
#  directories:

services:
  - docker

env:
  global:
    - GOMAXPROCS=2
    - PATH=$PATH:$HOME/.minimesos/bin

go:
  - 1.8

install:
  - curl -sSL https://minimesos.org/install | sh
  - go get .

script:
  - set -e
# TODO: reenable
#  - minimesos up
  - docker run -d -p 8200:8200 --hostname vault --name vault vault server -dev -dev-root-token-id=vault-gatekeeper-test-token-id
  - bash integration.sh
  - go vet .

after_script:
# TODO: reenable
#  - minimesos destroy
  - docker stop vault
  - docker rm vault

#notifications:
#  - email: false
Update Travis build to golang 1.8
Travis: Update Travis build to golang 1.8
