- os: linux
env:
- COMPILER=g++-5
+ - PYTHON=/usr/bin/python-dbg
+ - DISTCHECK_CONFIGURE_FLAGS="PYTHON=/usr/bin/python-dbg"
- os: osx
osx_image: xcode9.2
+ env:
+ - LDFLAGS="-L/usr/local/opt/flex/lib -L/usr/local/opt/texinfo/lib"
+ - CPPFLAGS="-I/usr/local/opt/flex/include"
- compiler: gcc
env:
- COMPILER=g++-6
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cython flex help2man texinfo valgrind ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/cython/bin:/usr/local/opt/flex/bin:/usr/local/opt/texinfo/bin:$PATH" ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS="-L/usr/local/opt/flex/lib -L/usr/local/opt/texinfo/lib" ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CPPFLAGS="-I/usr/local/opt/flex/include" ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cython flex help2man texinfo ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/cython/bin:/usr/local/opt/flex/bin:/usr/local/opt/texinfo/bin:/usr/local/opt/gettext/bin:$PATH" ; fi
# Need gettext 0.19, not in trusty; xenial doesn’t seem to work well yet on Travis
install:
- - wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.gz
- - tar zxf gettext-0.19.8.1.tar.gz
- - cd gettext-0.19.8.1 && ./configure --quiet --enable-silent-rules && sudo make install && cd ..
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.gz ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar zxf gettext-0.19.8.1.tar.gz ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd gettext-0.19.8.1 && ./configure --quiet --enable-silent-rules && sudo make install && cd .. ; fi
script:
- ./bootstrap
- - ./configure PYTHON=/usr/bin/python-dbg --enable-silent-rules
+ - ./configure --enable-silent-rules
- make
- - make DISTCHECK_CONFIGURE_FLAGS="PYTHON=/usr/bin/python-dbg" distcheck
+ - make distcheck