forked from hashicorp/terraform-provider-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (58 loc) · 2.3 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
61
62
63
dist: bionic
language: go
go:
- "1.13"
services:
- docker
env:
- GOFLAGS=-mod=vendor
before_install:
# https://github.com/kubernetes/website/pull/15667
# It is recommended to use the apt installation of docker from ([Docker](https://www.docker.com/products/docker-desktop),
# when using the none driver. The snap installation of docker does not work with minikube.
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
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