forked from kubevirt/common-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (80 loc) · 2.92 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
sudo: required
dist: xenial
language: python
branches:
only:
- master
- /^v[0-9]/
env:
global:
- KUBEVIRT_VER=v0.15.0-alpha.0
- CPLATFORM=minikube CVER=1.11.2
jobs:
include:
- stage: Tests
name: Check syntax of all templates
env: TARGET=syntax-tests
script: bash -x test.sh
- name: Functional test of the Fedora template
env: TARGET=functional-tests TEST_FUNCTIONAL="fedora-desktop-tiny fedora-desktop-small fedora-desktop-medium fedora-desktop-large"
script: bash -x test.sh
- name: Functional test of the Ubuntu template
env: TARGET=functional-tests TEST_FUNCTIONAL="ubuntu-desktop-tiny ubuntu-desktop-small ubuntu-desktop-medium ubuntu-desktop-large"
script: bash -x test.sh
- name: Functional test of the CentOS 8 template
env: TARGET=functional-tests TEST_FUNCTIONAL="centos8-server-tiny centos8-server-small centos8-server-medium centos8-server-large"
script: bash -x test.sh
- name: Functional test of the desktop CentOS 8 template
env: TARGET=functional-tests TEST_FUNCTIONAL="centos8-desktop-tiny centos8-desktop-small centos8-desktop-medium centos8-desktop-large"
script: bash -x test.sh
- name: Functional test of the CentOS 7 template
env: TARGET=functional-tests TEST_FUNCTIONAL="centos7-server-tiny centos7-server-small centos7-server-medium centos7-server-large"
script: bash -x test.sh
- name: Functional test of the desktop CentOS 7 template
env: TARGET=functional-tests TEST_FUNCTIONAL="centos7-desktop-tiny centos7-desktop-small centos7-desktop-medium centos7-desktop-large"
script: bash -x test.sh
- name: Functional test of the CentOS 6 template
env: TARGET=functional-tests TEST_FUNCTIONAL="centos6-server-tiny centos6-server-small centos6-server-medium centos6-server-large"
script: bash -x test.sh
- stage: Build and Deploy
name: Build and Deploy to GitHub
before_script: skip
# released artifacts MUST always have REVISION=1
script: make release "VERSION=$TRAVIS_TAG" REVISION=1
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file: dist/common-templates-$TRAVIS_TAG.yaml
skip_cleanup: true
name: $TRAVIS_TAG
on:
tags: true
repo: kubevirt/common-templates
cache:
directories:
- cache
- "~/.minishift/cache"
- "~/.minikube/cache"
addons:
apt:
sources:
- sourceline: 'ppa:ansible/ansible'
packages:
- qemu-utils
- jq
- ansible
- python-gobject
- libosinfo-1.0
- gir1.2-libosinfo-1.0
- intltool
before_script:
- sudo mount --make-rshared /
- bash -x ci/prepare-host $CPLATFORM $CVER
- bash -x ci/prepare-host virtctl $KUBEVIRT_VER
- bash -x ci/prepare-host oc 3.10.0
- bash -x ci/start-cluster $CPLATFORM $CVER
- bash -x ci/deploy-kubevirt $CPLATFORM $KUBEVIRT_VER
- kubectl get pods --all-namespaces
- kubectl describe nodes
- kubectl describe -n kubevirt daemonset virt-handler
- kubectl -n kubevirt logs -l kubevirt.io=virt-handler