language: go
sudo: false
dist: trusty
go:
  - 1.x
  - 1.8.x
  - 1.9.x
  - master

env:
  DEP_VER=0.4.1
  PATH=$HOME/bin:$PATH
  
install:
  - dep ensure

before_install:
  - wget "https://github.com/golang/dep/releases/download/v$DEP_VER/dep-linux-amd64"
  - mkdir -p $HOME/bin
  - cp dep-linux-amd64 $HOME/bin/dep
  - chmod 755 $HOME/bin/dep

script:
  - go test
  - go install
