forked from hashicorp/terraform-provider-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (52 loc) · 1.85 KB
/
.travis.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
sudo: required
# We need the systemd for the kubeadm and it's default from 16.04+
dist: bionic
services:
- docker
language: go
go:
- "1.12.x"
env:
- GOFLAGS=-mod=vendor
stages:
- Unit test
- Acceptance test
jobs:
include:
- name: Unit test
stage: Unit test
install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
script:
- make test
- make vet
- make website-test
- name: Acceptance test
stage: Acceptance test
env:
- CHANGE_MINIKUBE_NONE_USER=true
- KUBERNETES_VERSION=v1.15.4
- MINIKUBE_VERSION=v1.4.0
install:
- sudo apt-get update
- sudo apt-get install -y socat
before_script:
- sudo mount --make-rshared /
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl
- sudo chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- curl -Lo minikube https://storage.googleapis.com/minikube/releases/${MINIKUBE_VERSION}/minikube-linux-amd64
- sudo chmod +x minikube && sudo mv minikube /usr/local/bin/
- sudo minikube start --vm-driver=none --kubernetes-version=${KUBERNETES_VERSION}
- sudo chown -R travis /home/travis/.minikube/
- sudo chown -R travis /home/travis/.kube/
- JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl get nodes -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 1; done
script:
- travis_wait 60 make testacc
matrix:
fast_finish: true
allow_failures:
- go: tip