forked from hashicorp/terraform-provider-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (56 loc) · 2.06 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
57
58
59
60
sudo: required
# We need the systemd for the kubeadm and it's default from 16.04+
dist: xenial
services:
- docker
language: go
go:
- "1.11.x"
env:
- GOFLAGS=-mod=vendor GO111MODULE=on
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.10.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/latest/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/
- minikube update-context
- 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
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
- chmod 700 get_helm.sh
- DESIRED_VERSION=v2.11.0 ./get_helm.sh
script:
# needed till we fix the init in the provider
- helm init --client-only
- travis_wait 60 make testacc
matrix:
fast_finish: true
allow_failures:
- go: tip