aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-01-03 02:39:59 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-01-06 18:47:33 +0100
commitcd312bb82c8693ffeb9b143e5361567657a7cede (patch)
tree39b6e764593576f1a8631e1f8a8eb459af4e1847 /.travis.yml
parent11a7b775f53e5cdcc845e3746945e2910f78f202 (diff)
downloadblogc-cd312bb82c8693ffeb9b143e5361567657a7cede.tar.gz
blogc-cd312bb82c8693ffeb9b143e5361567657a7cede.tar.bz2
blogc-cd312bb82c8693ffeb9b143e5361567657a7cede.zip
build: travis: fix osx support
This commit fixes builds of blogc and helper tools on osx, and enables travis tests on it. This also includes some general improvements for travis, and disable tests that require mocked functions if the linker does not supports `-wrap` ldflag
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml22
1 files changed, 9 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml
index c148698..80136d3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
-dist: trusty
sudo: required
language: c
+compiler: gcc
addons:
apt:
@@ -11,10 +11,6 @@ addons:
- rpm
- valgrind
-compiler:
- - clang
- - gcc
-
env:
- TARGET=valgrind
- TARGET=distcheck
@@ -25,23 +21,23 @@ env:
- TARGET=win64
matrix:
- exclude:
- - compiler: clang
- env: TARGET=dist-srpm
- - compiler: clang
- env: TARGET=github-lambda
+ include:
- compiler: clang
- env: TARGET=make-embedded
+ env: TARGET=valgrind
- compiler: clang
- env: TARGET=win32
+ env: TARGET=distcheck
- compiler: clang
- env: TARGET=win64
+ env: TARGET=distcheck
+ os: osx
install: gem install ronn
before_script:
- git fetch --unshallow
- ./autogen.sh
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cmocka; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install xz; fi
script:
- ./.travis/build.sh