summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 23 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 5a205a3..9c6c8eb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,27 @@
-sudo: required
-dist: trusty
language: c
+
+os:
+ - linux
+ - osx
+
compiler:
- gcc
- clang
-before_install:
- - sudo apt-get install libconfuse-dev
- - sudo apt-get install libnl-3-dev libnl-route-3-dev
- - sudo apt-get install libncurses-dev
-# Change this to your needs
-script: ./.travis/run.sh
+
+# container-based builds
+sudo: false
+addons:
+ apt:
+ packages:
+ # packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
+ - libconfuse-dev
+ - libncurses5-dev
+ - libnl-3-dev
+ - libnl-route-3-dev
+
+
+install:
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null && brew install confuse ; fi
+
+script:
+ - ./.travis/run.sh