forked from keikoproj/active-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 863 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
30
31
32
language: go
go:
- 1.12.x
git:
depth: 1
env:
global:
- GO111MODULE=on
install:
# install dependencies needed by jobs
- wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.0.0-beta.0/kubebuilder_2.0.0-beta.0_linux_amd64.tar.gz
- tar -zxvf kubebuilder_2.0.0-beta.0_linux_amd64.tar.gz
- sudo mv kubebuilder_2.0.0-beta.0_linux_amd64 /usr/local/kubebuilder
jobs:
include:
- stage: unit-test
script:
- go test -v ./api/... ./controllers/... ./metrics/... ./store/... -coverprofile coverage.txt
- bash <(curl -s https://codecov.io/bash)
- stage: publish-image
if: type = push
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- export IMG=orkaproj/active-monitor:latest #$TRAVIS_BRANCH
- make docker-build
- make docker-push