forked from migtools/mig-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (27 loc) · 893 Bytes
/
.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
language: go
sudo: false
install: true
matrix:
include:
- os: linux
go: "1.14.4"
sudo: true
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
- os: osx
go: "1.14.4"
cache:
directories:
- $HOME/Library/Caches/go-build
- $HOME/gopath/pkg/mod
script:
- export os=$(go env GOOS)
- export arch=$(go env GOARCH)
- export BUILDTAGS="containers_image_ostree_stub exclude_graphdriver_devicemapper exclude_graphdriver_btrfs containers_image_openpgp exclude_graphdriver_overlay"
- curl -sL https://go.kubebuilder.io/dl/2.0.0-beta.0/${os}/${arch} | tar -xz -C /tmp/
- sudo mv /tmp/kubebuilder_2.0.0-beta.0_${os}_${arch} /usr/local/kubebuilder
- export PATH=$PATH:/usr/local/kubebuilder/bin
- export GOBIN=$GOPATH/bin
- env KUBEBUILDER_CONTROLPLANE_START_TIMEOUT=60s make ci