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

env:
  GLIDE_VER=0.12.3
  PATH=$HOME/bin:$PATH
  
install:
  - glide install

before_install:
  - wget "https://github.com/Masterminds/glide/releases/download/v$GLIDE_VER/glide-v$GLIDE_VER-linux-amd64.tar.gz"
  - mkdir -p $HOME/bin
  - tar xz -C $HOME/bin/ --strip-components=1 -f glide-v$GLIDE_VER-linux-amd64.tar.gz

script:
  - go test
  - go install
  - cd testradosgwproxy
  - go install