summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2016-01-26 01:23:19 +0800
committerChocobo1 <Chocobo1@users.noreply.github.com>2016-01-26 01:27:59 +0800
commitcbcdab6669dc690230c6ce24e0ca8a91355079bf (patch)
tree73a7d51be1e096afb7c8ca89b01225ef078aacf0
parent8dcd666db615694e43fd89113e5465b376768b79 (diff)
TravisCI: fix script, add OSX builds
-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