forked from aws/aws-node-termination-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (85 loc) · 2.96 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
language: minimal
services:
- docker
env:
- E2E_TEST=true KUBE_VERSION=1.19
- E2E_TEST=true KUBE_VERSION=1.18
- E2E_TEST=true KUBE_VERSION=1.17
- E2E_TEST=true KUBE_VERSION=1.16
- E2E_TEST=true KUBE_VERSION=1.15
- E2E_TEST=true KUBE_VERSION=1.14
script: test/k8s-local-cluster-test/run-test -v $KUBE_VERSION
jobs:
include:
- stage: Test
language: go
go: "1.15.x"
script: make unit-test
name: Unit Tests
after_success: bash <(curl -s https://codecov.io/bash) -v
- Stage: Test
script: make shellcheck
name: Check Shell Scripts
- Stage: Test
script: make spellcheck
name: Spellcheck Markdown Files
- stage: Test
script: make helm-lint
name: Helm v2 and v3 Lint
- stage: Test
script: test/go-report-card-test/run-report-card-test.sh
name: Go Report Card Test
- stage: Test
script: make build-binaries
name: Build Binaries Linux
- stage: Test
name: Build Binaries Windows
os: windows
install: choco install make && choco install zip
script: RefreshEnv.cmd && make build-binaries-windows
- stage: Test
script: make build-docker-images
name: Build Docker Images Linux
- stage: Test
name: Build Docker Images Windows
os: windows
install: choco install make
script: RefreshEnv.cmd && make build-docker-images-windows
- stage: Test
script: make generate-k8s-yaml
name: Generate K8s yaml files
- stage: Test
if: type = push AND env(GITHUB_TOKEN) IS present
script: test/license-test/run-license-test.sh
name: License Test
- stage: Test
if: type = push AND env(GITHUB_TOKEN) IS present
script: make helm-tests
name: Helm Sync and Version Test
- stage: Deploy
if: type = push AND env(DOCKER_USERNAME) IS present
script: make sync-readme-to-dockerhub
name: Sync Readme to Dockerhub
- stage: Deploy
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(DOCKER_USERNAME) IS present
script: make release
name: Release Artifacts Linux
- stage: Windows Deploy
name: Release Artifacts Windows
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(DOCKER_USERNAME) IS present
os: windows
install: choco install make && choco install zip
script: RefreshEnv.cmd && make release-windows
- stage: EKS Charts Sync
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(GITHUB_TOKEN) IS present
script: make ekscharts-sync-release
name: Sync to EKS Charts
- stage: EKS Charts Sync Check
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(DOCKER_USERNAME) IS present
script: make helm-sync-test
name: Validate Charts in sync
- stage: ReadMe Version Sync
if: type = push AND tag =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/ AND env(GITHUB_TOKEN) IS present
script: make create-release-prep-pr-readme
name: Sync ReadMe versions