summaryrefslogtreecommitdiff
path: root/vendor/github.com/digitalocean/go-libvirt/.travis.yml
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2021-03-15 14:52:43 -0500
committerbaude <bbaude@redhat.com>2021-03-25 08:43:51 -0500
commitb5f54a9b23e8d9418700494da9aa78d8db354c43 (patch)
tree59dfb9edf3faf6d184f6af40522f71968948133a /vendor/github.com/digitalocean/go-libvirt/.travis.yml
parenta861f6fd3ebe4fe0b63a1b550e6b99d7525228c0 (diff)
downloadpodman-b5f54a9b23e8d9418700494da9aa78d8db354c43.tar.gz
podman-b5f54a9b23e8d9418700494da9aa78d8db354c43.tar.bz2
podman-b5f54a9b23e8d9418700494da9aa78d8db354c43.zip
introduce podman machine
podman machine allows podman to create, manage, and interact with a vm running some form of linux (default is fcos). podman is then configured to be able to interact with the vm automatically. while this is usable on linux, the real push is to get this working on both current apple architectures in macos. Ashley Cui contributed to this PR and was a great help. [NO TESTS NEEDED] Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'vendor/github.com/digitalocean/go-libvirt/.travis.yml')
-rw-r--r--vendor/github.com/digitalocean/go-libvirt/.travis.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/vendor/github.com/digitalocean/go-libvirt/.travis.yml b/vendor/github.com/digitalocean/go-libvirt/.travis.yml
new file mode 100644
index 000000000..5852afcfd
--- /dev/null
+++ b/vendor/github.com/digitalocean/go-libvirt/.travis.yml
@@ -0,0 +1,62 @@
+language: go
+os: linux
+dist: bionic
+sudo: require
+
+cache:
+ directories:
+ - $HOME/.ccache
+
+go:
+ - "1.15"
+
+env:
+ global:
+ - CCACHE_TEMPDIR=/tmp/.ccache-temp
+ matrix:
+ - LIBVIRT=2.3.0 EXT=xz
+ - LIBVIRT=3.1.0 EXT=xz
+ - LIBVIRT=5.1.0 EXT=xz
+
+before_install:
+ - go get golang.org/x/lint/golint
+ - go get golang.org/x/tools/cmd/goyacc
+
+install:
+ # credit here goes to the go-libvirt authors,
+ # see: https://github.com/rgbkrk/libvirt-go/blob/master/.travis.yml
+ - sudo apt-get -qqy build-dep libvirt
+ - sudo apt-get -qqy install curl qemu-system-x86
+ - sudo mkdir -p /usr/src && sudo chown $(id -u) /usr/src
+ - curl -O -s https://libvirt.org/sources/libvirt-${LIBVIRT}.tar.${EXT}
+ - tar -C /usr/src -xf libvirt-${LIBVIRT}.tar.${EXT}
+ - pushd /usr/src/libvirt-${LIBVIRT}
+ - ccache --show-stats
+ - |
+ env PATH=/usr/lib/ccache:$PATH \
+ ./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
+ - ccache --show-stats
+ - popd
+ - sudo libvirtd -d -l -f libvirtd.conf
+ - sudo virtlogd -d || true
+
+before_script:
+ - go get -d ./...
+ - sudo qemu-img create -f raw -o size=10M /var/lib/libvirt/images/test.raw
+ - sudo virsh define .travis/test-domain.xml
+ - sudo virsh start test
+ - sudo virsh pool-create .travis/test-pool.xml
+ - sudo virsh secret-define .travis/test-secret.xml
+
+script:
+ - ./scripts/licensecheck.sh
+ - LIBVIRT_SOURCE=/usr/src/libvirt-${LIBVIRT} go generate ./...
+ - go build ./...
+ - golint -set_exit_status ./...
+ - go vet ./...
+ - go test -v -tags=integration ./...