language: go
go: "1.10"

notifications:
  email: false

env:
  global:
   - TAGS=()

before_install:
  - TAGS+=(debug)
  - TAGS+=(integration)
  - TAGS+=(prebuild)
  - go version

install:
  - go get -u github.com/golang/dep/cmd/dep
  - go get -u github.com/golang/lint/golint
  - go get -u github.com/jessevdk/go-assets-builder

script:
  - dep ensure
  - (result="`find . -type d -name vendor -prune -o -type f -name '*.go' -exec golint {} \;`"; if [ ! -z "${result}" ]; then echo "${result}"; exit 1; fi)
  - go vet -tags="`echo ${TAGS[@]}`" ./...
  - cp buildtime/buildtime.go /tmp
  - go generate -tags=prebuild ./...
  - |
    for tag in ${TAGS[@]}; do
      echo "go build -v -tags=${tag} ./..."
      go build -v -tags=${tag} ./...
    done
  - go build -v
  - cp /tmp/buildtime.go buildtime/buildtime.go
  - go test -tags=integration -v -race ./...


language: go
go: "1.11.4"

notifications:
  email: false

env:
  global:
   - TAGS=()

before_install:
  - TAGS+=(debug)
  - TAGS+=(integration)
  - TAGS+=(prebuild)
  - go version

install:
  - go get -u github.com/golang/dep/cmd/dep
  - go get -u github.com/golang/lint/golint
  - go get -u github.com/jessevdk/go-assets-builder

script:
  - dep ensure
  - (result="`find . -type d -name vendor -prune -o -type f -name '*.go' -exec golint {} \;`"; if [ ! -z "${result}" ]; then echo "${result}"; exit 1; fi)
  - go vet -tags="`echo ${TAGS[@]}`" ./...
  - cp buildtime/buildtime.go /tmp
  - go generate -tags=prebuild ./...
  - |
    for tag in ${TAGS[@]}; do
      echo "go build -v -tags=${tag} ./..."
      go build -v -tags=${tag} ./...
    done
  - go build -v
  - cp /tmp/buildtime.go buildtime/buildtime.go
  - go test -tags=integration -v -race ./...


Update go version to 1.11.4 in order to upgrade template behaviour and so on
Update go version to 1.11.4 in order to upgrade template behaviour and so on
