forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
129 lines (120 loc) · 7.25 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
if: type != pull_request OR branch =~ /^(release-[0-9\.]+)$/
language: generic
dist: xenial
services:
- docker
arch:
- amd64
# - ppc64le # temporary disable until we have it under control again
os: linux
install:
- git reset --hard
script:
- ./automation/travisci-test.sh
deploy:
- provider: script
script: docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" && DOCKER_PREFIX="index.docker.io/kubevirt" DOCKER_TAG="latest" make bazel-push-images
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
script: docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" && DOCKER_PREFIX="index.docker.io/kubevirt" DOCKER_TAG="latest" make functest-image-push
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
script: docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" && DOCKER_PREFIX="index.docker.io/kubevirt"
DOCKER_TAG="$TRAVIS_TAG" QUAY_REPOSITORY="kubevirt" PACKAGE_NAME="kubevirt-operatorhub"
sh -c 'make bazel-push-images && make manifests'
skip_cleanup: true
file:
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
script: make build-functests
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64
- provider: releases
skip_cleanup: true
api_key:
secure: KD1d1EkvX5iY5pvKQbi6Aj6y49XXnQBxBMok9x2d9LVMbmzBQIHoTqUQz2Dv2TSpANshkIrLmR1eT/brCK382cIUVvA6kG8JB2yqAAE2hzJ8u49+CI4iyqpBWw1HCuH/4xPWZUPVBW0Yl9WsW0vencAeKK6cTDm4Z9K3esJf+iZMpJh7ZpK2ESn9d2RZsrpOKJpxYrvt14Wox+8YfqPRCTJoO/Q8vdXbyOrRVpK6daSe11HsmTZZpFzgLWGojpjH05wcENUaokpCIp8Hgx3rJmO9z5iReNG+2QuPCw0QyEIKGAvzlA5KbYFWBUurxz0XsnaovbJ7BKI070arxQKjKRnjSNE3kEValOwMIE8dA835A1nChm85NILQdWvlbexSxPpz0z62SGPjFthUj9VBx/RnUrd1itxWOi6ZW5k6PnWDUoKPr63+fYSAkp6bXO9ELexA19wUfQCicGRBEO3mJ6QvKKbiDAFKWcABlavxlNtFgw1mMPxxWEhKkW0PrCqOVu9fDDzJ48DCD5XHRT8HUVHDeKcscMTW675rlzo3SxTJdqnZSybpbMSmKbxNs0rM8kPXf1RQLsGDg4CC6Daxz255PV5Y/+p0AhZ2hWtfC3c/Ff8wOdDSdCaEcg5tGa/e1kJWAKuIATUGdZsFZUri8ePQcgcXzM4ihANn7gP8Cl4=
file_glob: true
file:
- _out/cmd/virtctl/virtctl-v*
- _out/manifests/release/demo-content.yaml
- _out/manifests/release/kubevirt-operator.yaml
- _out/manifests/release/kubevirt-cr.yaml
- _out/templates/manifests/release/kubevirt-operator.yaml.j2
- _out/templates/manifests/release/kubevirt-cr.yaml.j2
- _out/manifests/release/olm/kubevirt-operatorsource.yaml
- _out/manifests/release/olm/bundle/kubevirtoperator.$TRAVIS_TAG.clusterserviceversion.yaml
- _out/tests/tests.test
- _out/manifests/release/conformance.yaml
- _out/manifests/release/conformance.yaml.j2
prerelease: true
overwrite: true
name: $TRAVIS_TAG
on:
tags: true
repo: kubevirt/kubevirt
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
skip_cleanup: true
script: bash hack/gen-swagger-doc/deploy.sh
on:
branch: master
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
skip_cleanup: true
script: bash hack/gen-swagger-doc/deploy.sh
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
skip_cleanup: true
script: bash hack/gen-client-python/deploy.sh
on:
branch: master
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
skip_cleanup: true
script: hack/publish-staging.sh
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
skip_cleanup: true
script: hack/publish-staging.sh
on:
branch: master
condition: $TRAVIS_CPU_ARCH = amd64
- provider: script
script: DOCKER_TAG="$TRAVIS_TAG" QUAY_REPOSITORY="kubevirt" PACKAGE_NAME="kubevirt-operatorhub" make olm-push
skip_cleanup: true
file:
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64
env:
global:
# api-reference token
- secure: pS1N+T7f20B9PJ2S6e4Bc0z0vK6wnUgtGrs1982iXYocVZZtL6LreXYV/9a5ANrykLx+/qeRxbR4FTknfJwsmm2MX1WN7FIEtp7wGxt5uU0Q+b5pERbgUL8amkvhc6Hj9eWn59fbEKSmAEeMupeYydPPCFJp8oumEEP6szb0zCj7LQPWxhEMtVLY2U8d3WbkhBoxC1Bv5kTOajaiyuwjgiJd3yvR6WfNOQUL167TCoyzRDoe7jUSZ9EScyDRg7mC2Nk2o4vzZwmaz8QjO6T6f2za95t7/kxhYrL7WAfa3POxdhHPP0XX4ZsypU6++hDj0txPAB/ICa55Za6A+BhFrUdGeoYb3T8jtWIF9UDHq6m8yhurtDPooR7VMjkR2ghz4Ol4cv2f1QWv5MGDg4hh9gKgjE+gbbeZyA5+t3l/Zf2HozZQCIDpMpi4EUUS3rCGkr44h0AjiZP9s4QrUY74kpT6GEGluFTlkXar+R3bvnTVY2J4vj6XGdAXHYtAbKI2/yaq20wqkbsC6BKHITcZ/E3eIBh2kc0WD4pdm8MnI0chuuMSkM6ynRDcPNYi235VmhxuUBaNWrkQEHGVOjXJPLB+xMRc6vVxAjV/OFaKXsbPb4a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TM5v/C5c1K4=
# DOCKER_USER
- secure: GDzAdyMI1IssB8je9PsidxUJ55Bp2+gTKh0bB+Syy50BWz81yxWsK0oHvM65h1DTPKv30lnwAvaOLy21uEBBuWNoyCCkMIdc9HeUwpi+Ilex9D84vDtf5c4tx3pIxpzNPOfm/7wWQDYI9o2eeGIY0B3WGufiUlelWC3i1Uq3r2OTfufxwMpwIyuHydU8VOvyromdiZ2VNZcCAmrpVONd+UBmxrvJoIINVN80XH7tlpSfdKC70VJGLyp3bwSPBHl8LkI1nkEwMB+1La+EPYmfE4hfHDiAeRYqiIEKR9VYmjh2O6Lo8VDMebLzC/kH8S1zQt71PN/Oknqu60jenPMz6gr4sKt17uE4+BH+7Ef+jp4uFqwYV7rGCg7vbE/fE3nW2GBcpXCNZZsVvKg+u3TrquvssszUZyNQmy2NOoeqdM6F4D1h5mqhyp/Rrg5VFpiwN92CLI0yfoCPHbZcLs8DLcZuxTDVhjoatUnTUs68hPFaY0q9SpFwRAsb6tVyuoMG2fHpBd7oZCZVrnQzHslrFulpzVqbm28x+jrPVBRTGmak79eZrckQ92FyLQQONiYP6g+V9dMiJ4tho4P5U84z2Ty8IQZTC7UDw+2ZpVNNud+NTGSal/K+eJ1XzPRDO0N3qZ6uOQG1kOkIn29Kh7/PqxLEcbZf4Ay5sL4IwzTrmx4=
notifications:
irc:
channels:
- "chat.freenode.net#kubevirt"
on_success: change
on_failure: always