- 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:
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