2017-04-07 14:15:25 +00:00
|
|
|
sudo: false
|
|
|
|
language: c
|
|
|
|
cache: ccache
|
2017-09-14 11:31:17 +00:00
|
|
|
|
2018-03-21 14:04:54 +00:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^.*-maint$/
|
|
|
|
|
2017-09-14 11:31:17 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- compiler: gcc
|
|
|
|
dist: trusty
|
2018-02-23 10:58:27 +00:00
|
|
|
env:
|
2018-03-20 14:29:31 +00:00
|
|
|
- PYTHON=$(which python2)
|
2018-02-23 10:58:27 +00:00
|
|
|
- DISTCHECK_CONFIGURE_FLAGS="--with-init-script=upstart"
|
2017-09-14 11:31:17 +00:00
|
|
|
- compiler: clang
|
|
|
|
dist: trusty
|
2018-02-23 10:58:27 +00:00
|
|
|
env:
|
2018-03-20 14:29:31 +00:00
|
|
|
- PYTHON=$(which python3)
|
2018-02-23 10:58:27 +00:00
|
|
|
- DISTCHECK_CONFIGURE_FLAGS="--with-init-script=systemd"
|
2017-09-14 11:31:17 +00:00
|
|
|
- compiler: clang
|
|
|
|
os: osx
|
2018-03-15 10:10:53 +00:00
|
|
|
before_install:
|
2018-05-14 07:45:10 +00:00
|
|
|
- brew uninstall python mercurial postgis sfcgal cgal gdal
|
2018-03-15 10:10:53 +00:00
|
|
|
- brew update
|
|
|
|
- brew upgrade
|
2018-05-14 07:45:10 +00:00
|
|
|
- brew install python rpcgen yajl
|
2018-02-28 12:27:38 +00:00
|
|
|
script:
|
|
|
|
# We can't run make distcheck/syntax-check because they
|
|
|
|
# fail on macOS, but doing 'install' and 'dist' gives us
|
|
|
|
# some useful coverage
|
|
|
|
- make -j3 && make -j3 install && make -j3 dist
|
2017-09-14 11:31:17 +00:00
|
|
|
|
2017-04-07 14:15:25 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2017-09-06 12:46:07 +00:00
|
|
|
# Please keep this list sorted alphabetically
|
2017-04-07 14:15:25 +00:00
|
|
|
packages:
|
2018-01-12 10:02:38 +00:00
|
|
|
- augeas-tools
|
2017-09-08 14:42:28 +00:00
|
|
|
- autoconf
|
|
|
|
- automake
|
2017-04-07 14:15:25 +00:00
|
|
|
- autopoint
|
2018-02-28 13:40:45 +00:00
|
|
|
- bash-completion
|
2017-09-08 14:42:28 +00:00
|
|
|
- ccache
|
2017-09-06 12:46:07 +00:00
|
|
|
- dnsmasq-base
|
2018-01-12 10:02:38 +00:00
|
|
|
- dwarves
|
2017-09-08 14:42:28 +00:00
|
|
|
- ebtables
|
|
|
|
- gcc
|
2017-09-06 12:48:48 +00:00
|
|
|
- gettext
|
2017-09-08 14:42:28 +00:00
|
|
|
- glusterfs-client
|
|
|
|
- libacl1-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libapparmor-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libattr1-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libaudit-dev
|
2017-04-07 14:15:25 +00:00
|
|
|
- libavahi-client-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libblkid-dev
|
|
|
|
- libc6-dev
|
2017-04-07 14:15:25 +00:00
|
|
|
- libcap-ng-dev
|
2018-02-28 13:40:45 +00:00
|
|
|
- libc-dev-bin
|
2017-09-08 14:42:28 +00:00
|
|
|
- libcurl4-gnutls-dev
|
|
|
|
- libdbus-1-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libdevmapper-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libfuse-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libgnutls-dev
|
|
|
|
- libnetcf-dev
|
2017-04-07 14:15:25 +00:00
|
|
|
- libnl-3-dev
|
|
|
|
- libnl-route-3-dev
|
|
|
|
- libnuma-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libopenwsman-dev
|
|
|
|
- libparted-dev
|
|
|
|
- libpcap-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libpciaccess-dev
|
2017-04-07 14:15:25 +00:00
|
|
|
- librbd-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libreadline-dev
|
2018-02-28 13:40:45 +00:00
|
|
|
- libsanlock-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- libsasl2-dev
|
2018-01-12 10:02:38 +00:00
|
|
|
- libselinux1-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libssh2-1-dev
|
2018-01-12 10:02:38 +00:00
|
|
|
- libssh-dev
|
2018-02-28 13:40:45 +00:00
|
|
|
- libtirpc-dev
|
2017-09-08 14:42:28 +00:00
|
|
|
- libtool
|
2017-09-06 12:46:07 +00:00
|
|
|
- libudev-dev
|
|
|
|
- libxen-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libxml2-utils
|
|
|
|
- libyajl-dev
|
|
|
|
- lvm2
|
2017-09-08 14:42:28 +00:00
|
|
|
- make
|
2018-01-12 10:41:06 +00:00
|
|
|
# - nfs-common # broken on trusty since build #807 (2018-01-09)
|
2017-09-08 14:42:28 +00:00
|
|
|
- open-iscsi
|
|
|
|
- parted
|
|
|
|
- patch
|
2018-01-12 10:02:38 +00:00
|
|
|
- perl
|
2018-02-28 13:40:45 +00:00
|
|
|
- pkgconf
|
2017-09-08 14:42:28 +00:00
|
|
|
- policykit-1
|
2018-01-12 10:02:38 +00:00
|
|
|
- qemu-utils
|
|
|
|
- radvd
|
2017-09-08 14:42:28 +00:00
|
|
|
- scrub
|
|
|
|
- sheepdog
|
|
|
|
- systemtap-sdt-dev
|
2017-09-06 12:46:07 +00:00
|
|
|
- xsltproc
|
2017-09-08 14:42:28 +00:00
|
|
|
- zfs-fuse
|
2017-04-07 14:15:25 +00:00
|
|
|
|
|
|
|
git:
|
|
|
|
submodules: true
|
|
|
|
|
2017-09-06 13:57:47 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# The custom $PATH is just to pick up some extra binaries installed
|
|
|
|
# through homebrew on macOS and it's completely harmless on Linux
|
|
|
|
- PATH="/usr/local/opt/gettext/bin:/usr/local/opt/rpcgen/bin:$PATH"
|
|
|
|
- VIR_TEST_DEBUG=1
|
|
|
|
|
2017-04-07 14:15:25 +00:00
|
|
|
before_script:
|
2018-02-28 12:27:38 +00:00
|
|
|
- ./autogen.sh --prefix=$(pwd)/install-root
|
2017-09-14 11:31:17 +00:00
|
|
|
|
2017-04-07 14:15:25 +00:00
|
|
|
script:
|
2018-02-23 10:58:27 +00:00
|
|
|
- make -j3 && make -j3 syntax-check && make -j3 distcheck DISTCHECK_CONFIGURE_FLAGS=$DISTCHECK_CONFIGURE_FLAGS
|
2017-04-07 14:15:25 +00:00
|
|
|
|
2017-05-25 05:19:45 +00:00
|
|
|
after_failure:
|
|
|
|
- echo '============================================================================'
|
2018-04-30 17:49:07 +00:00
|
|
|
- 'ver=$(sed -n "s/AC_INIT(\[libvirt\], \[\([0-9.]*\)\],.*/\1/p" configure.ac);
|
|
|
|
if [ -f $(pwd)/tests/test-suite.log ]; then
|
2017-05-25 05:19:45 +00:00
|
|
|
cat $(pwd)/tests/test-suite.log;
|
2018-04-30 17:49:07 +00:00
|
|
|
elif [ -f libvirt-$ver/_build/tests/test-suite.log ]; then
|
|
|
|
cat libvirt-$ver/_build/tests/test-suite.log;
|
2017-05-25 05:19:45 +00:00
|
|
|
else
|
|
|
|
echo "=== NO LOG FILE FOUND ===";
|
|
|
|
fi'
|
2017-09-14 11:31:17 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
# The channel name "irc.oftc.net#virt" is encrypted against libvirt/libvirt
|
|
|
|
# to prevent IRC notifications from github forks. This was created using:
|
|
|
|
# $ travis encrypt -r "libvirt/libvirt" "irc.oftc.net#virt"
|
|
|
|
channels:
|
|
|
|
- secure: "hUPdkLxX7nh75+clpnk4U0XLExLfV9DFKSvQSAUtf5JtDNMslj7AeOCf2wcbkNsEhkiF557odTAnov1s5m1w/yaa56zbjFAh5agzqRKya3QjqsrvlBKw/WuN+l82iMNLLeebTgCPAXrbAbGWH8YmYssp/7+eMsnKaVh84EQQNbMCHlLg6ovE26Fs18mZ6J5RC3OPa1vbv+xkdCHvGg/Oyp4K8bpU7RYyimA56jdxI/OfdTH9HxntHYSzykR7hDbyzZhdIlAUyRKReQVjcV5+R8fdDL/1imyGA/88KTztMeKXpZ5Rf+Ss3vYLZb6qsLLegCZ4AU/q0vvbWxjpZGJZoeyrVpfBTZdYGIzmLTMl9GYXXa/gDwFlbvRDiPDG4TIy6GlMUROinj7KRKEHu1fWRYu012ife5OjidxcwrTnz21vYaCv3AKWPpMPxwIzQPkY1hex9uLLX6z+TrAxxDLF+7UzRT9w2RLFBkLYlj2aDVrLAVb/ynRsxDz5CGzC61FSQVft2e308SkGjdn8YxvguCuXv+N70Fu1cvFyh5XYeHb4fbBRo0Ctzaec78leHlQvRGWKJxXDXRkE2lvvBc7YbBNSAYh7Fs8Y+zY7l7rMxvXdrt3nuaNQhe74V3yhxPDAld66qmAn9TYMmaZW2f5/KKKILLbCa0t2MxiAc6L2OI8="
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
email:
|
|
|
|
# The list name 'libvirt-ci@redhat.com" is encrypted against libvirt/libvirt
|
|
|
|
# to prevent IRC notifications from github forks. This was created using:
|
|
|
|
# $ travis encrypt -r "libvirt/libvirt" "libvirt-ci@redhat.com"
|
|
|
|
recipients:
|
|
|
|
- secure: "QcU9eP96P0RlDNzVRZl/4sxyydPStGzECrpgJhr2IPB/7pHk23yaBrmUsq9S830tB+jwLGma1IscNB8uf7Sf7WY+cYIpfR8v030OffWnaipo/Gcs0dpnlfURWHjOFQI3RJzGEihsqvbwUFOwsM+3IDyO3qdWaiT6cN2Tj9ROlwYCySSX5YWzLyX7arBZ4lp8ESs7ohQaEwp2cegnMP2oGPJJe4SebvlCDjHZbjkU5aEradwUWnRQDJZWTKknpNLArVFxN2/ixp6f/MGY4DmkHoDweio6mHIPN5zTs5Jt32aiX6wDBa+bBa4v8TCRqzhYkQ63ZZhNV8bY5Uf9ufTdyvt96yIANyakd85b1QpMdAX76IyJi1l0/Uub6DTQZAcq3vK7iPjGeTVSpyoXrqTfGy4JxMjqDoocpWvv8ALX1wrYI/HfN2R2Aepw9jModTimOsebYhJ1yMhSt8qnh5AQNftGKL2JBKoA1LWdU2YJ5fO1bGjKNiVEkGFQTPYFWrYCUY5JcT+s5WCzNeMNm8s9na8liYhGl3WtS3rPr5M8bof+BMsBhG2hQ0loduc94x2GkvyhQZUgRbqrwNR+y4hn+rWFC3hBzzyiAULs43vY/PJ+eBdKEf3VAc0MkhQ8GgXGSA61fR6aXYonroI/WnBVItwDmUnnMfSziZXxk09GLl4="
|