forked from aws/aws-node-termination-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 1.21 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
44
---
language: minimal
services:
- docker
env:
- KUBE_VERSION=1.17
- KUBE_VERSION=1.16
- KUBE_VERSION=1.15
- KUBE_VERSION=1.14
- KUBE_VERSION=1.13
- KUBE_VERSION=1.12
- KUBE_VERSION=1.11
script: test/k8s-local-cluster-test/run-test -v $KUBE_VERSION
matrix:
include:
- stage: Test
language: go
go: "1.13.x"
script: make unit-test
env: GO111MODULE=on
after_success: bash <(curl -s https://codecov.io/bash) -v
- stage: Test
script: test/go-report-card-test/run-report-card-test.sh
env: GO_REPORT_CARD=true
- stage: Test
if: type = push AND branch = master AND env(GITHUB_TOKEN) IS present
script: test/license-test/run-license-test.sh
env: LICENSE_TEST=true
- stage: Test
script: make helm-sync-test
env: HELM_SYNC_TEST=true
- stage: Deploy
if: type = push AND env(DOCKER_USERNAME) IS present
script: make sync-readme-to-dockerhub
- stage: Deploy
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(DOCKER_USERNAME) IS present
script: make docker-build-and-push
- stage: Deploy
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(DOCKER_USERNAME) IS present
script: make release