forked from bluek8s/kubedirector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (20 loc) · 830 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
language: go
go:
- "1.18.x"
env:
- OPERATOR_SDK_VERSION="v0.15.2" ORIG_HOME="$GOPATH/src/github.com/bluek8s"
before_install:
# Make sure we have the same build directory as the original repo.
- export buildroot=$(pwd); export origroot="$ORIG_HOME/kubedirector"; if [[ "$buildroot" != "$origroot" ]]; then cd; mkdir -p "$ORIG_HOME"; mv "$buildroot" "$origroot"; cd "$origroot"; fi
install:
# Get the operator SDK
- curl -L -s https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}/operator-sdk-${OPERATOR_SDK_VERSION}-x86_64-linux-gnu -o $GOPATH/bin/operator-sdk
- chmod +x $GOPATH/bin/operator-sdk
# Get golint
- go get -u golang.org/x/lint/golint
# Make sure Travis environment is happy
- go mod tidy
script:
- make compile
- make golint
- make check-format