-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis-kind.yml
29 lines (22 loc) · 1.17 KB
/
.travis-kind.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: go
go:
- '1.11.x'
services:
- docker
jobs:
include:
- stage: Integration Tests
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
- GO111MODULE=on go get sigs.k8s.io/kind
# It's possible to download and install KinD using curl, similar as for kubectl
# This is useful in cases when Go toolchain isn't available or you prefer running stable version
# Binaries for KinD are available on GitHub Releases: https://github.com/kubernetes-sigs/kind/releases
# - curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/0.0.1/kind-linux-amd64 && chmod +x kind && sudo mv kind /usr/local/bin/
# Create a new Kubernetes cluster using KinD
- kind create cluster
# Set KUBECONFIG environment variable
- export KUBECONFIG="$(kind get kubeconfig-path)"
script: ./ci-scripts/integration_tests.sh