summaryrefslogtreecommitdiff
path: root/.travis.yml
Commit message (Collapse)AuthorAgeFilesLines
* build/debian: install mobile-broadband-provider-infolr/debian-service-providerLubomir Rintel2019-09-111-0/+1
|
* all: goodbye libnm-glibLubomir Rintel2019-04-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | This removes libnm-glib, libnm-glib-vpn, and libnm-util for good. The it has been replaced with libnm since NetworkManager 1.0, disabled by default since 1.12 and no up-to-date distributions ship it for years now. Removing the libraries allows us to: * Remove the horrible hacks that were in place to deal with accidental use of both the new and old library in a single process. * Relief the translators of maintenance burden of similar yet different strings. * Get rid of known bad code without chances of ever getting fixed (libnm-glib/nm-object.c and libnm-glib/nm-object-cache.c) * Generally lower the footprint of the releases and our workspace If there are some really really legacy users; they can just build libnm-glib and friends from the NetworkManager-1.16 distribution. The D-Bus API is stable and old libnm-glib will keep working forever. https://github.com/NetworkManager/NetworkManager/pull/308
* Revert "all: goodbye libnm-glib"Lubomir Rintel2019-04-031-0/+1
| | | | | | We need this for a little little longer :( This reverts commit 1de8383ad9fdfc8f552117e5d109bdfa7005634b.
* all: goodbye libnm-glibLubomir Rintel2019-03-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | This removes libnm-glib, libnm-glib-vpn, and libnm-util for good. The it has been replaced with libnm since NetworkManager 1.0, disabled by default since 1.12 and no up-to-date distributions ship it for years now. Removing the libraries allows us to: * Remove the horrible hacks that were in place to deal with accidental use of both the new and old library in a single process. * Relief the translators of maintenance burden of similar yet different strings. * Get rid of known bad code without chances of ever getting fixed (libnm-glib/nm-object.c and libnm-glib/nm-object-cache.c) * Generally lower the footprint of the releases and our workspace If there are some really really legacy users; they can just build libnm-glib and friends from the NetworkManager-1.16 distribution. The D-Bus API is stable and old libnm-glib will keep working forever. https://github.com/NetworkManager/NetworkManager/pull/308
* ci: use common script for tests on travis and gitlabThomas Haller2018-11-121-86/+2
| | | | | | | | | | | | | | For one, it's not unreasonable that we want to run the same tests both for gitlab and travis. Move the actual tests into a script, which is called by both CI environments. We still can do something different, based on the environment. The advantage here is, that the common part will be shared, and the places where we differ can easily be spot. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/44
* build: autodetect ebpf supportBeniamino Galvani2018-09-191-3/+1
|
* travis: disable gtk-doc for meson buildsBeniamino Galvani2018-09-191-1/+1
| | | | | | | Introspection can't be enabled on travis due to a GLib bug [1]. Therefore, gtk-doc must be disabled as well. [1] https://bugzilla.gnome.org/show_bug.cgi?id=774368
* build: allow disabling eBPF support in n-acdbg/n-acd-updateBeniamino Galvani2018-09-181-1/+3
| | | | | | | | | | Add a configure option to disable eBPF support in n-acd. Note that, even if eBPF is not supported, n-acd requires a kernel > 3.19, which means that the setsockopt(..., SO_ATTACH_BPF) option must be defined. To allow building on older kernels without modifying the n-acd code, we inject the SO_ATTACH_BPF value as a preprocessor define in the compiler the command line.
* build/autotools: fail configure if netconfig/resolveconf tool is not foundThomas Haller2018-09-131-4/+4
| | | | | | | | | If the user explicitly passes --with-netconfig=$PATH or --with-resolvconf=$PATH, the path is accepted as is. We only do autodetection, if the binary was not found. In that case, if the binary cannot be found in the common paths fail compilation. (cherry picked from commit 5b36585a3ddd9bc54419e71aef0c244c8015d6d6)
* travis: enabling building more optional components during CI with mesonThomas Haller2018-09-131-2/+3
| | | | | | | After fixing meson build for these components, enable them for build in travis. (cherry picked from commit 0dda7586e4ec3a35031ad2578821d056d99103f1)
* travis: enabling building more optional components during CIThomas Haller2018-09-121-2/+35
| | | | | | | | | | | | | | | A few components are still disabled. Most notably, team support which is not available on Ubuntu 14.04 (trusty). All other components which are disabled are bugs in our build tools. It should be possible to enable them, but currently breaks on travis. Those needs additional fixes. In particular, the DHCP plugins and ifcfg-rh plugin with meson. Also, netconfig plugin with autotools requires that the path exists. (cherry picked from commit e8934059279106728cd4255ab4f9203f83a3ede2)
* build/travis: build both against crypto "gnutls" and "nss"Thomas Haller2018-09-041-1/+12
| | | | | | | We already do matrix-builds with autotools|meson and gcc|clang. Make the selected crypto backend depending on the compiler, so that we get more coverage.
* travis: do out-of-tree build in travisThomas Haller2018-07-171-4/+8
| | | | | | | When developing, we usually do in-tree-builds, so that case is already better tested in every-day usage. It makes sense for travis to test the less-well-tested case: the out-of-tree build with autotools.
* travis: we don't need de_DE locale for clients testsThomas Haller2018-06-181-1/+0
| | | | | | | clients/tests only uses Polish locale for testing localized output. No need to generate the Germane locale as well. (cherry picked from commit 3a58c956c522cb3c744b99fac4733423791dba8a)
* clients/tests: add python test script for nmcli testsThomas Haller2018-05-111-2/+9
| | | | | | | | | | | | | Add a test which runs nmcli against our stub NetworkManager service and compares the output. The output formats of nmcli are complicated and not easily understood. For example how --mode tabular|multiline interacts with selecting output-fields (--fields) and output modes ([default]|--terse|--pretty). Also, there are things like `nmcli connection show --order $FIELD_SPEC`. We need unit tests to ensure that we don't change the output accidentally.
* travis: install meson 0.44.1 for travis' meson buildThomas Haller2018-03-051-1/+12
| | | | | | | | | | | | | | Latest versions of meson require now Python 3.5+. Not only that meson requires Python3 and thus makes building on some systems cumbersome (RHEL7), it also eagerly bumps Python3.y requirements. Install the last working release which works with Python3.4. This fixes the the travis build failure on Ubuntu 14.04 (trusty): Meson works correctly only with python 3.5+. You have python 3.4.3 (default, Nov 28 2017, 16:41:13) [GCC 4.8.4]. Please update your environment
* netlink: drop libnl3 dependencyThomas Haller2018-02-211-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | From libnl3, we only used the helper function to parse/generate netlink messages and the socket functions to send/receive messages. We don't need an external dependency to do that, it is simple enough. Drop the libnl3 dependency, and replace all missing code by directly copying it from libnl3 sources. At this point, I mostly tried to import the required bits to make it working with few modifications. Note that this increases the binary size of NetworkManager by 4736 bytes for contrib/rpm build on x86_64. In the future, we can simplify the code further. A few modifications from libnl3 are: - netlink errors NLE_* are now in the domain or regular errno. The distinction of having to bother with two kinds of error number domains was annoying. - parts of the callback handling is copied partially and unused parts are dropped. Especially, the verbose/debug handlers are not used. In following commits, the callback handling will be significantly simplified. - the complex handling of seleting ports was simplified. We now always let kernel choose the right port automatically.
* travis: enable matrix build for gcc/clang and autotools/mesonth/build-meson-on-travisThomas Haller2018-01-101-34/+43
|
* travis: add meson builds to travis-ciThomas Haller2018-01-101-4/+40
|
* travis: update to Ubuntu 14.04 (trusty)lr/travis-upgradeLubomir Rintel2018-01-021-4/+3
| | | | | | It is slightly less obsolete. We don't really support precise (12.04) anyway, the build only works because we steal libndp and perhaps more from the trusty repository.
* travis: use apt addon to install packagesLubomir Rintel2018-01-021-18/+49
| | | | | Looks better. Also, this would be the only way to install deps if we ever switch to a non-privileged run (if we manage to rid of "sudo dbus-uuidgen").
* settings: drop unmaintained ifnet settings plugin of GentooThomas Haller2017-12-211-1/+1
| | | | | | | | | | | | Even Gentoo disables this plugin since before 0.9.8 release of NetworkManager. Time to say goodbye. If somebody happens to show up to maintain it, we may resurrect it later. If "$distro_plugins=ifnet" was set, configure.ac would use that to autodetect --with-hostname-persist=gentoo. Replace that autodetect part by checking for /etc/gentoo-release file.
* all: update compatiblity for older libjansson versionsth/janssonThomas Haller2017-11-091-1/+1
| | | | | | | | | | | - nm-ovsdb.c uses json_load_callback(), which is jansson v2.4. Hence, it cannot build the OVS plugin in our Travis-CI, which is still on Ubuntu Precise. Disable building the plugin in travis and add a compiler warning when building against an older version. - since jansson v2.3, there is json_object_key_to_iter() to implement the for-each macros. Use it in json_object_foreach_safe() when available.
* travis: fix travis build to use Ubuntu 12.04 LTS (Precise Pangolin)Thomas Haller2017-07-251-0/+1
| | | | | | | | | | | | | Travis used by default Ubuntu 12.04 which is now EOL. Hence, the default changed. Eventually, we may want to upgrade the tests to run on Ubuntu 14.04.5 LTS (Trusty Tahr). But for that we need to adjust the travis test script. For now, explicitly select precise. https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming?utm_source=web&utm_medium=banner&&utm_campaign=trusty-default
* travis: enable gcc+clang compiler for travis buildsThomas Haller2017-05-121-0/+4
|
* travis: fix build due to missing libcurl libraryThomas Haller2017-05-101-2/+2
| | | | | | | | | Since using libcurl for connectivity checks, we failed to build with connectivity checking on travis. Fix that by installing the required library (from trusty). Fixes: 4e6967e33d912511f38b347c061cecb2ac4421fc (cherry picked from commit 1f2b5a2032242838c3e0dcf0b316385b96c3aee4)
* udev: drop libgudev in favor of libudevThomas Haller2017-03-221-1/+1
| | | | | | libgudev is just a wrapper around libudev. We can use libudev directly and drop the dependency for libgudev.
* travis: build additional settings plugin in travis-ciThomas Haller2016-10-221-1/+1
| | | | | Although the build environment is Ubuntu, we still can build the non-native settings plugins to test the build.
* libnm-core: use jansson to compare and check team configurationsBeniamino Galvani2016-04-181-1/+1
| | | | | Optionally link libnm-core against jansson JSON library and use it to validate and compare team configurations.
* travis: update .travis.yml not to run tests when build failsThomas Haller2016-02-161-4/+4
| | | | | When building fails, we should not run the tests. They clutter the output.
* travis: fix bug in .travis.ymlThomas Haller2016-01-231-1/+1
| | | | Fixes: 1408b8c0a21105f3ea6d2e58d0fc03835f255d34
* travis: add coverity submissionLubomir Rintel2016-01-221-2/+22
| | | | | Also, decouple the build from the test run; it looks better in the .yml file as well as in the travis UI.
* travis: move build script to a separate script and improve debugging for ↵Thomas Haller2016-01-221-1/+1
| | | | failed tests
* build: add .travis.ymlLubomir Rintel2015-09-301-0/+10