-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
44 lines (35 loc) · 1.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
sudo: required
dist: bionic
language: go
go:
- 1.17.x
- 1.18.x
go_import_path: github.com/rh-messaging/shipshape
services:
- docker
git:
depth: 1
env:
global:
- KUBECONFIG=$HOME/.kube/config
- KUBERNETES_VERSION=$(curl -k -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
before_install:
# Setup kubectl
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl
- chmod +x kubectl
- sudo mv kubectl /usr/local/bin/
# Get tools
- git clone https://github.com/skupperproject/skupper-cli.git && cd skupper-cli && make build && cp skupper $GOPATH/bin
- go install sigs.k8s.io/kind@latest
- go get github.com/jfeliu007/goplantuml/parser@latest
- go install github.com/jfeliu007/goplantuml/cmd/goplantuml@latest
- cd -
# Create a new Kubernetes cluster using KinD
- kind create cluster
- kubectl cluster-info
script:
- cd $GOPATH/src/github.com/rh-messaging/shipshape
- make uml
- env make
- env make unit-tests
- env make cluster-test