-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
43 lines (34 loc) · 1.05 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
language: go
go:
- 1.13.x
git:
depth: 1
env:
global:
- GO111MODULE=on
cache:
directories:
- $HOME/.local
- $HOME/.kube
before_install: skip
install:
# install kube builder so BDD test cases can work
- wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.0/kubebuilder_2.3.0_linux_amd64.tar.gz
- tar -zxvf kubebuilder_2.3.0_linux_amd64.tar.gz
- sudo mv kubebuilder_2.3.0_linux_amd64 /usr/local/kubebuilder
jobs:
include:
- stage: unit-test
if: type IN (push, pull_request)
script:
- make test
- bash <(curl -s https://codecov.io/bash)
- make docker-build
- stage: publish-image
if: type IN (push)
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- if [ $TRAVIS_EVENT_TYPE = push ]; then export CONTROLLER_TAG=keikoproj/manager:$TRAVIS_BRANCH; fi
- if [ $TRAVIS_EVENT_TYPE = push ]; then export SERVER_TAG=keikoproj/server:$TRAVIS_BRANCH; fi
- make docker-build
- make docker-push