-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
41 lines (37 loc) · 1.18 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
language: go
services:
- docker
go:
- 1.13.x
jobs:
include:
- stage: test
name: go tests
script:
- ./scripts/test.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: test
name: go lint
install:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.24.0
script:
- GOGC=10 ./bin/golangci-lint run -j 4 --timeout 5m --exclude "\.pb.*\.go" --exclude "_strings\.go" --exclude "_test\.go" --exclude "not checked.+Close" ./...
- stage: test
name: helm check
install:
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- curl -LO https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz
- tar xf kubeval-linux-amd64.tar.gz
script:
- helm template ./helm/draino/ | ./kubeval --strict
- stage: push
install: skip
script:
- ./scripts/build.sh
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- ./scripts/push.sh
stages:
- name: test
- name: push
if: branch = master and not type = pull_request