dist: xenial

language: go
go: "1.12.x"
go_import_path: /skaffold

git:
  submodules: false

branches:
  only:
    - master

jobs:
  include:
    - os: linux
      name: "checks"
      script:
        - make checks
    - os: linux
      name: "Linux unit"
      script:
        - make
        - make quicktest
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - os: osx
      name: "OSX unit"
      env:
        - GO111MODULE=on
        - GOFLAGS="-mod=vendor"
      script:
        - go build -o out/skaffold cmd/skaffold/skaffold.go
        - go test -short -timeout 60s ./...
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - os: windows
      name: "Windows unit"
      env:
        - GO111MODULE=on
        - GOFLAGS="-mod=vendor"
      script:
        - go build -o out/skaffold.exe cmd/skaffold/skaffold.go
        - go test -short -timeout 60s ./...
    - os: linux
      name: "integration"
      before_install:
        - curl -Lo ${HOME}/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64
        - chmod +x ${HOME}/bin/kind
      script:
        - make integration-in-kind

dist: xenial

language: go
go: "1.12.x"
go_import_path: /skaffold

git:
  submodules: false

branches:
  only:
    - master

jobs:
  include:
    - os: linux
      name: "checks"
      script:
        - make checks
    - os: linux
      name: "Linux unit"
      script:
        - make
        - make quicktest
      after_success:
        - bash <(curl -s https://codecov.io/bash)
    - os: osx
      name: "OSX unit"
      script:
        - make
        - make quicktest
    - os: windows
      name: "Windows unit"
      env:
        - GO111MODULE=on
        - GOFLAGS="-mod=vendor"
      script:
        - go build -o out/skaffold.exe cmd/skaffold/skaffold.go
        - go test -short -timeout 60s ./...
    - os: linux
      name: "integration"
      before_install:
        - curl -Lo ${HOME}/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64
        - chmod +x ${HOME}/bin/kind
      script:
        - make integration-in-kind

Simplify CI script on OSX and don’t upload coverage report
Simplify CI script on OSX and don’t upload coverage report

Signed-off-by: David Gageot <aa743a0aaec8f7d7a1f01442503957f4d7a2d634@gageot.net>