forked from kubevirt/kubevirt-ssp-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (56 loc) · 1.39 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
sudo: required
dist: bionic
language: go
go: "1.11"
branches:
only:
- master
- /^v[0-9]/
services:
- docker
jobs:
include:
- stage: Tests
name: "minishift"
env: CPLATFORM=minishift TARGET=functests KUBECTL=oc OC=oc V=5 CI_CONFIG_FEATURE_GATES=DataVolumes,LiveMigration,CPUManager
- stage: Build and Deploy
name: Build and Deploy to GitHub
if: tag IS present
before_script: skip
script: make release "IMAGE_TAG=$TRAVIS_TAG"
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
skip_cleanup: true
overwrite: true
file_glob: true
file:
- _out/*
name: $TRAVIS_TAG
on:
tags: true
branch: master
repo: $TRAVIS_REPO_SLUG
addons:
apt:
packages:
- python3-pip
- python3-setuptools
- python3-wheel
cache:
directories:
- cache
- "~/.minishift/cache"
before_script:
## FIXME Workaround for https://github.com/kubernetes/kubernetes/issues/61058
### And https://github.com/LiliC/travis-minikube/blob/e0f26f7b388057f51a0e2558afd5f990e07b6c49/.travis.yml#L11
- sudo mount --make-rshared /
- bash -x ci/ci/extra/get-kubevirt-releases
- bash -x ci/prepare-host $CPLATFORM
- bash -x ci/prepare-host virtctl
- bash -x ci/start-cluster $CPLATFORM $CVER
- bash -x hack/deploy-kubevirt $CPLATFORM
- bash -x hack/build-operator.sh
- bash -x hack/install-operator.sh
script:
- bash -x test.sh