From: Marek VavruĊĦa Date: Mon, 9 Feb 2015 23:16:18 +0000 (+0100) Subject: travis: osx build brew before depends X-Git-Tag: v1.0.0-beta1~329^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eae25de02f4c8a84286f41330a1664e75eca6fd;p=thirdparty%2Fknot-resolver.git travis: osx build brew before depends --- diff --git a/.travis.yml b/.travis.yml index e4e5da883..2deb149d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,16 +20,12 @@ env: - PATH="${PATH}:${HOME}/.local/bin" - CFLAGS="${CFLAGS} -O0 -g -DNDEBUG" before_script: - - ./scripts/bootstrap-depends.sh ${HOME}/.local - pip install --user travis -r tests/pydnstest/requirements.txt cpp-coveralls - - test $TRAVIS_OS_NAME = osx \ - && brew update \ - && brew install python + - ./scripts/bootstrap-depends.sh ${HOME}/.local script: - make ${MAKEOPTS} check COVERAGE=1 after_success: - - test $TRAVIS_OS_NAME = linux \ - && coveralls -i lib -x ".c" --gcov-options '\-lp' + - test $TRAVIS_OS_NAME = linux && coveralls -i lib -x ".c" --gcov-options '\-lp' sudo: false cache: directories: diff --git a/scripts/bootstrap-depends.sh b/scripts/bootstrap-depends.sh index 7638aaa36..917afee64 100755 --- a/scripts/bootstrap-depends.sh +++ b/scripts/bootstrap-depends.sh @@ -12,6 +12,12 @@ PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig" install -d ${PREFIX}/{lib,libexec,include,bin,sbin,man,share,etc,info,doc,var} [ ! -d .depend ] && mkdir .depend; cd .depend +# platform-specific +if [ "$TRAVIS_OS_NAME" == "osx" ]; then + brew upgrade + brew install python +fi + # liburcu if [ ! -e ${PREFIX}/include/urcu.h ]; then git clone -b ${URCU_TAG} git://git.urcu.so/userspace-rcu.git || true