]> granicus.if.org Git - vnstat/commitdiff
update Travis CI configuration
authorTeemu Toivola <git@humdi.net>
Mon, 9 Oct 2017 19:33:21 +0000 (22:33 +0300)
committerTeemu Toivola <git@humdi.net>
Mon, 9 Oct 2017 19:33:21 +0000 (22:33 +0300)
.travis.yml

index e7b68b151c536fb2e53c27acde064e80976f1f65..aed94fd0e38b7906977453e074c6146eb3c668ac 100644 (file)
@@ -1,25 +1,30 @@
 language: c
 
-os:
- - linux
- - osx
-
-compiler:
-  - gcc
-  - clang
-
 matrix:
-  exclude:
-    - os: osx
+  include:
+    - os: linux
+      dist: trusty
+      sudo: false
       compiler: gcc
+    - os: linux
+      dist: trusty
+      sudo: false
+      compiler: clang
+    - os: osx
+      compiler: clang
+
+addons:
+  apt:
+    packages:
+      - libgd3
+      - libgd-dev
+      - check
 
 before_install:
- - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then sudo apt-get update -qq ; fi
- - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then sudo apt-get install -qq libgd2-xpm libgd2-xpm-dev check ; fi
  - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then brew install gd check ; fi
 
 script:
- - CFLAGS='-Wall -Wextra -g' ./configure && make check && ./vnstat --version
+ - CFLAGS='-Wall -Wextra -g' ./configure && make check || ( cat test.log ; exit 1 ) && ./vnstat --version
 
 notifications:
   email: