1
0
mirror of https://github.com/ko-build/ko.git synced 2025-02-13 19:42:26 +02:00
ko-build/.travis.yml
Matt Moore 60e32d0655
Switch to go 1.14 in go.mod, test 1.15 (#187)
* Switch to go 1.14 in go.mod, test 1.15

* Fix the integration test semantics with go 1.14+
2020-09-04 09:31:01 -07:00

38 lines
1.0 KiB
YAML

sudo: required
dist: trusty
services:
- docker
language:
- go
go:
- '1.14'
- '1.15'
git:
depth: 1
install: true # skipping the default go dependencies install step
before_script:
# Download and install kubectl
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# Download and install KinD
- curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.8.1/kind-$(uname)-amd64 && chmod +x ./kind && sudo mv kind /usr/local/bin/
# Create a new Kubernetes cluster using KinD
- kind create cluster
script:
# Verify that all source files are correctly formatted.
- find . -name "*.go" | grep -v vendor/ | xargs gofmt -d -e -l
- go clean -i
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- bash integration_test.sh
# TODO: Set up coverage.
#after_success:
# - bash <(curl -s https://codecov.io/bash)