sudo: required
services:
  - docker
language: go
go:
  - 1.10.4
install:
  - go get github.com/mattn/goveralls
  - go get -u github.com/vbatts/git-validation
  - go get -u github.com/go-swagger/go-swagger/cmd/swagger
script:
  - git-validation -run DCO,short-subject
  - go fmt $(go list ./... | grep -v vendor) | wc -l | grep 0
  - make docker-proto
  - git diff $(find . -name "*.pb.*go" -o -name "api.swagger.json" | grep -v vendor) | wc -l | grep "^0"
  - make sdk-check-version
  - make install
  - make vet
  - bash hack/docker-integration-test.sh
  - make docker-test
  - if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
      echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin;
      make push-mock-sdk-server;
    fi
notifications:
  email:
    recipients:
      - aditya@portworx.com
      - eng@portworx.com
    on_success: change
    on_failure: always

sudo: required
services:
  - docker
language: go
go:
  - 1.11.x
  - 1.12.x
install:
  - go get github.com/mattn/goveralls
  - go get -u github.com/vbatts/git-validation
  - go get -u github.com/go-swagger/go-swagger/cmd/swagger
script:
  - git-validation -run DCO,short-subject
  - go fmt $(go list ./... | grep -v vendor) | wc -l | grep 0
  - make docker-proto
  - git diff $(find . -name "*.pb.*go" -o -name "api.swagger.json" | grep -v vendor) | wc -l | grep "^0"
  - make sdk-check-version
  - make install
  - make vet
  - bash hack/docker-integration-test.sh
  - make docker-test
  - if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
      echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin;
      make push-mock-sdk-server;
    fi
notifications:
  email:
    recipients:
      - aditya@portworx.com
      - eng@portworx.com
    on_success: change
    on_failure: always

Change build matrix to use go 1.11 and 1.12
Change build matrix to use go 1.11 and 1.12

Signed-off-by: Craig Rodrigues <c4b5a8c0fafd56ae12499ba1d5d55022dbe4108e@portworx.com>
