language: go
go: 1.6.2

# allow for use of Docker-based workers
sudo: false

install:
    - |
        GB_VERSION=$(awk '$1 == "ENV" && $2 == "GB_VERSION" { print $3; exit }' Dockerfile)
        firstGo="${GOPATH%%:*}"
        mkdir -p "$firstGo/src/github.com/constabulary"
        (
            cd "$firstGo/src/github.com/constabulary"
            wget -qO- "https://github.com/constabulary/gb/archive/v${GB_VERSION}.tar.gz" \
                | tar -xz
            mv gb-* gb
            cd gb
            go install -v ./...
        )

before_script:
    - env | sort
    - ( cd bashbrew/go && gb build )
    - export PATH="$PWD/bashbrew/go/bin:$PATH"

script:
    - ./bashbrew/travis.sh

language: go
go: 1.7.x

# allow for use of Docker-based workers
sudo: false

install:
    - |
        GB_VERSION=$(awk '$1 == "ENV" && $2 == "GB_VERSION" { print $3; exit }' Dockerfile)
        firstGo="${GOPATH%%:*}"
        mkdir -p "$firstGo/src/github.com/constabulary"
        (
            cd "$firstGo/src/github.com/constabulary"
            wget -qO- "https://github.com/constabulary/gb/archive/v${GB_VERSION}.tar.gz" \
                | tar -xz
            mv gb-* gb
            cd gb
            go install -v ./...
        )

before_script:
    - env | sort
    - ( cd bashbrew/go && gb build )
    - export PATH="$PWD/bashbrew/go/bin:$PATH"

script:
    - ./bashbrew/travis.sh

Update Travis to use Go 1.7
Update Travis to use Go 1.7
