forked from digitalocean/go-qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (56 loc) · 1.98 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
language: go
os: ubuntu
dist: trusty
sudo: require
go:
- 1.x
env:
- QEMU=2.2.0 QEMU_EXT=xz LIBVIRT=1.2.2 LIBVIRT_EXT=gz
- QEMU=2.2.0 QEMU_EXT=xz LIBVIRT=2.3.0 LIBVIRT_EXT=xz
- QEMU=2.2.0 QEMU_EXT=xz LIBVIRT=3.1.0 LIBVIRT_EXT=xz
- QEMU=2.5.0 QEMU_EXT=xz LIBVIRT=1.2.2 LIBVIRT_EXT=gz
- QEMU=2.5.0 QEMU_EXT=xz LIBVIRT=2.3.0 LIBVIRT_EXT=xz
- QEMU=2.5.0 QEMU_EXT=xz LIBVIRT=3.1.0 LIBVIRT_EXT=xz
- QEMU=2.9.0 QEMU_EXT=xz LIBVIRT=1.2.2 LIBVIRT_EXT=gz
- QEMU=2.9.0 QEMU_EXT=xz LIBVIRT=2.3.0 LIBVIRT_EXT=xz
- QEMU=2.9.0 QEMU_EXT=xz LIBVIRT=3.1.0 LIBVIRT_EXT=xz
install:
- sudo apt-get -qqy build-dep qemu-system-x86 libvirt
- sudo apt-get -qqy install curl
- sudo mkdir -p /usr/src && sudo chown $(id -u) /usr/src
- curl -O -L -s http://download.qemu-project.org/qemu-${QEMU}.tar.${QEMU_EXT}
- tar -C /usr/src -xf qemu-${QEMU}.tar.${QEMU_EXT}
- pushd /usr/src/qemu-${QEMU}
- |
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--disable-docs \
--target-list=x86_64-softmmu
- make
- sudo make install
- popd
- curl -O -s https://libvirt.org/sources/libvirt-${LIBVIRT}.tar.${LIBVIRT_EXT}
- tar -C /usr/src -xf libvirt-${LIBVIRT}.tar.${LIBVIRT_EXT}
- pushd /usr/src/libvirt-${LIBVIRT}
- |
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--without-polkit \
--without-esx --without-vbox --without-xen --without-libxl --without-lxc \
--with-qemu
- make
- sudo make install
- popd
- sudo libvirtd -d -l -f .travis/libvirtd.conf
- sudo virtlogd -d || true
- rm qemu-${QEMU}.tar.${QEMU_EXT} libvirt-${LIBVIRT}.tar.${LIBVIRT_EXT}
before_install:
- go get github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/stringer
before_script:
- go get -d ./...
script:
- ./scripts/licensecheck.sh
- ./scripts/codegeneration.sh
- go build ./...
- ./scripts/golint.sh
- go vet ./...
- go test -v ./...