mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 20:28:15 +02:00
travis: decouple the build from the test run
It looks better in the .yml file as well as in the travis UI.
(cherry picked from commit 1408b8c0a2)
[bgalvani: dropped the coverity part]
This commit is contained in:
parent
0907ad6cd8
commit
873e6564a0
2 changed files with 10 additions and 8 deletions
12
.travis.yml
12
.travis.yml
|
|
@ -1,10 +1,18 @@
|
|||
language: c
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install autoconf libtool pkg-config intltool libdbus-glib-1-dev libdbus-1-dev libiw-dev libglib2.0-dev libnl-3-dev libnl-route-3-dev libnl-genl-3-dev ppp-dev libpolkit-gobject-1-dev libgnutls28-dev libgcrypt11-dev uuid-dev libudev-dev libgudev-1.0-dev libgirepository1.0-dev gobject-introspection libsoup2.4-dev gtk-doc-tools libglib2.0-doc libreadline-dev libnewt-dev libnss3-dev iptables make python-software-properties python-gi python-dbus dbus dbus-x11
|
||||
- sudo apt-get install autoconf libtool pkg-config intltool libdbus-glib-1-dev libdbus-1-dev libiw-dev libglib2.0-dev
|
||||
libnl-3-dev libnl-route-3-dev libnl-genl-3-dev ppp-dev libpolkit-gobject-1-dev libgnutls28-dev libgcrypt11-dev
|
||||
uuid-dev libudev-dev libgudev-1.0-dev libgirepository1.0-dev gobject-introspection libsoup2.4-dev gtk-doc-tools
|
||||
libglib2.0-doc libreadline-dev libnewt-dev libnss3-dev iptables make python-software-properties python-gi
|
||||
python-dbus dbus dbus-x11
|
||||
- sudo dbus-uuidgen --ensure
|
||||
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty main'
|
||||
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install libnl-3-dev libndp-dev automake
|
||||
script: "./contrib/travis/travis-run.sh"
|
||||
|
||||
script:
|
||||
- sh autogen.sh --with-systemd-logind=no --enable-more-warnings=no
|
||||
- make -j4
|
||||
- ./contrib/travis/travis-check.sh"
|
||||
|
|
|
|||
|
|
@ -8,12 +8,6 @@ print_test_logs() {
|
|||
echo ">>>> PRINT TEST LOGS $1 (done)"
|
||||
}
|
||||
|
||||
sh ./autogen.sh \
|
||||
--with-systemd-logind=no \
|
||||
--enable-more-warnings=no
|
||||
|
||||
make -j6
|
||||
|
||||
if ! make check -k ; then
|
||||
|
||||
print_test_logs "first-test"
|
||||
Loading…
Add table
Reference in a new issue