forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 1.47 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
---
language: bash
dist: bionic
env:
- HV=xen
- HV=kvm
branches:
only:
- master
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
install:
- >
sudo apt-get -yq --no-install-suggests
--no-install-recommends install
qemu-utils make curl telnet ninja-build
- sudo modprobe kvm-intel nested=1
- sudo chown $USER /dev/kvm
- free
- lscpu
- >
eval "$(curl -sL
https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
| GIMME_GO_VERSION=1.12 bash)"
- go version
- sudo apt-get -yq build-dep qemu
- QEMU_VERSION=4.2.1
- wget https://download.qemu.org/qemu-$QEMU_VERSION.tar.xz
- tar xJf qemu-$QEMU_VERSION.tar.xz
- cd qemu-$QEMU_VERSION
- ./configure --target-list=x86_64-softmmu
- make -j2
- sudo make install
- cd ..
- qemu-system-x86_64 --version
script:
- make HV=$HV pkgs
- make HV=$HV eve
- git clone https://github.com/lf-edge/eden.git --single-branch
- cd eden
- make build
- ./eden config add default
- ./eden config set default --key=eve.hv --value=$HV
- ./eden config set default --key=eve.tag --value=$(make -s -C .. version)
- make build-tests
- ./eden setup
- ./eden start
- ./eden eve onboard
- >
./eden test tests/vnc -r TestVNCVMStart
-a '-name vncapp -timewait 1000' -v debug
after_script:
- ./eden pod logs --format=json vncapp
- ./eden log --format=json
- >
./eden test tests/vnc -r TestVNCVMDelete
-a '-name vncapp -timewait 1000' -v debug