Files
kubesphere/.travis.yml
runzexia 77b66dab14 push image on branch release 2.1
Signed-off-by: runzexia <runzexia@yunify.com>
2020-02-10 16:36:31 +08:00

42 lines
611 B
YAML

services:
- docker
language: go
dist: xenial
git:
depth: false
go:
- "1.13.x"
env:
- GO111MODULE=on
cache:
directories:
- $HOME/gopath/pkg/mod
before_script:
- docker --version
- bash hack/install_kubebuilder.sh
script:
- diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools)
- make openapi
- make all
install:
- go get golang.org/x/lint/golint
deploy:
- skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: master
- skip_cleanup: true
provider: script
script: bash hack/docker_build.sh
on:
branch: release-2.1