forked from hyperhq/hyperd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.43 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
sudo: required
dist: trusty
language: go
go_import_path: github.com/hyperhq/hyperd
go:
- 1.8
env:
- HYPER_EXEC_DRIVER=qemu HYPER_STORAGE_DRIVER=aufs
- HYPER_EXEC_DRIVER=qemu HYPER_STORAGE_DRIVER=rawblock
- HYPER_EXEC_DRIVER=libvirt HYPER_STORAGE_DRIVER=overlay
- HYPER_EXEC_DRIVER=libvirt HYPER_STORAGE_DRIVER=rawblock
- HYPER_EXEC_DRIVER=libvirt HYPER_STORAGE_DRIVER=btrfs
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq autoconf automake pkg-config libdevmapper-dev libsqlite3-dev libvirt-dev libvirt-bin aufs-tools wget libaio1 libpixman-1-0 netcat
- wget https://s3-us-west-1.amazonaws.com/hypercontainer-download/qemu-hyper/qemu-hyper_2.4.1-1_amd64.deb && sudo dpkg -i --force-all qemu-hyper_2.4.1-1_amd64.deb
- cd `mktemp -d`
- mkdir -p ${GOPATH}/src/github.com/hyperhq
- wget http://mirrors.kernel.org/sourceware/lvm2/LVM2.2.02.131.tgz
- tar xf LVM2.2.02.131.tgz
- cd LVM2.2.02.131
- ./configure > /dev/null && make device-mapper > /dev/null && sudo make install > /dev/null
# override the default `install`, otherwise default `install` will export ${TRAVIS_BUILD_DIR}/Godeps/_workspace as GOPATH
# see https://docs.travis-ci.com/user/languages/go#Dependency-Management
install:
- cd ${TRAVIS_BUILD_DIR}
- hack/install-grpc.sh
- hack/verify-gofmt.sh
- hack/verify-generated-proto.sh
- ./autogen.sh && ./configure && make
script:
- cd ${TRAVIS_BUILD_DIR} && hack/test-cmd.sh