From cd312bb82c8693ffeb9b143e5361567657a7cede Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 3 Jan 2018 02:39:59 +0100 Subject: 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 --- .travis.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to '.travis.yml') 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 -- cgit v1.2.3-18-g5258