2015-11-24 09:46:35 +01:00
|
|
|
# Build Configuration for Travis
|
2015-10-19 20:11:01 +02:00
|
|
|
sudo: false # Use Travis docker infrastructure
|
2015-11-24 09:46:35 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2013-03-05 07:37:44 +01:00
|
|
|
language: cpp
|
|
|
|
compiler:
|
2014-10-01 23:44:30 +02:00
|
|
|
- clang
|
2013-03-05 07:37:44 +01:00
|
|
|
- gcc
|
2014-10-01 23:20:31 +02:00
|
|
|
env:
|
|
|
|
global:
|
2014-10-02 00:07:27 +02:00
|
|
|
- CPPFLAGS=""
|
|
|
|
- CFLAGS="-Werror --coverage"
|
|
|
|
- CXXFLAGS="-Werror --coverage"
|
|
|
|
- LDFLAGS="--coverage"
|
2014-10-02 00:54:55 +02:00
|
|
|
install:
|
2015-11-24 09:46:35 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user nose; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user cpp-coveralls; fi # for coveralls.io code coverage tracking
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=$HOME/.local/bin:$PATH; fi # Make sure we can find the above Python packages
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi;
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ragel freetype glib gobject-introspection cairo icu4c graphite2; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew link --force icu4c; fi # icu4c is keg-only
|
2014-10-01 22:09:08 +02:00
|
|
|
script:
|
2014-10-01 22:38:47 +02:00
|
|
|
- NOCONFIGURE=1 ./autogen.sh
|
2015-11-24 09:46:35 +01:00
|
|
|
- export CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
|
2015-12-14 20:33:51 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --enable-gtk-doc"; fi
|
2015-11-24 09:46:35 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --with-coretext"; fi
|
|
|
|
- ./configure $CONFIGURE_OPTS
|
|
|
|
- make
|
|
|
|
- make check
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" ]; then rm -f src/.libs/NONE.gcov; touch src/NONE; coveralls; fi
|
2015-12-14 20:33:51 +01:00
|
|
|
after_success:
|
|
|
|
- bash .ci/deploy-docs.sh
|
2013-03-05 07:37:44 +01:00
|
|
|
notifications:
|
|
|
|
irc: "irc.freenode.org#harfbuzz"
|
|
|
|
email: harfbuzz@lists.freedesktop.org
|
2015-06-13 02:37:41 +02:00
|
|
|
|
|
|
|
addons:
|
2015-10-19 20:11:01 +02:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- pkg-config # for autogen.sh
|
|
|
|
- ragel
|
|
|
|
- gtk-doc-tools
|
|
|
|
- libfreetype6-dev # for font function
|
|
|
|
- libglib2.0-dev # for font functions / tests / utils
|
|
|
|
- libcairo2-dev # for utils
|
|
|
|
- libicu-dev # for extra unicode functions
|
|
|
|
- libgraphite2-dev # for extra shapers
|
|
|
|
- # libgirepository1.0-dev # for gobject-introspection
|