2015-11-24 08:46:35 +00:00
# Build Configuration for Travis
2016-01-01 20:36:19 +00:00
dist : trusty
2017-12-06 19:08:20 +00:00
2013-03-05 06:37:44 +00:00
language : cpp
2017-12-06 19:08:20 +00:00
2014-10-01 21:20:31 +00:00
env :
global :
2014-10-01 22:07:27 +00:00
- CPPFLAGS=""
2018-03-06 20:53:40 +00:00
- CFLAGS="-Werror -Werror=unused -Werror=unused-function"
- CXXFLAGS="-Werror -Werror=unused -Werror=unused-function -Wno-deprecated-register" # glib uses register and clang raises a warning
2017-12-06 19:08:20 +00:00
- CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
- NOCONFIGURE=1
2018-02-12 07:57:00 +00:00
# COVERITY_SCAN_TOKEN
2018-02-28 12:13:23 +00:00
- secure : "MRJtVu/fQoWNwMAamvIJBCX/1SMvEuEUk/ljAif/y2/3syyWgxFGp17UGnDILdoZYyCqTM+jQciY2P0nVqbjjOAUlML4QOAalqw8kPp8iTsnHUe+KOMVrOVP6p6qAQxk1im1O41cCMkmVKvk+NXe/on5euz6LGF2laHZaOAMoes="
2017-12-06 19:08:20 +00:00
matrix :
include :
- os : linux
compiler : gcc
script :
2018-01-22 15:07:26 +00:00
# Remove these two lines when Travis updated its distro
2018-01-22 09:38:35 +00:00
- wget http://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2 && tar xf freetype-2.9.tar.bz2 && cd freetype-2.9 && ./autogen.sh && ./configure && make -j4 && cd ..
2018-01-22 15:07:26 +00:00
- export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
2018-01-22 09:38:35 +00:00
2017-12-06 19:08:20 +00:00
- ./autogen.sh
2018-03-03 19:33:13 +00:00
- ./configure $CONFIGURE_OPTS --enable-gtk-doc --enable-code-coverage
2017-12-06 19:08:20 +00:00
- make
2018-02-15 09:25:24 +00:00
- make check || .ci/fail.sh
2018-03-03 19:56:11 +00:00
- rm -rf freetype-2.9
2017-12-06 19:08:20 +00:00
after_success :
- bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
- bash .ci/deploy-docs.sh
2018-02-12 07:57:00 +00:00
- bash .ci/trigger-coverity.sh
2017-12-06 19:08:20 +00:00
- os : linux
compiler : clang
script :
2018-01-22 15:07:26 +00:00
# Remove these two lines when Travis updated its distro
2018-01-22 09:38:35 +00:00
- wget http://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.bz2 && tar xf freetype-2.9.tar.bz2 && cd freetype-2.9 && ./autogen.sh && ./configure && make -j4 && cd ..
2018-01-22 15:07:26 +00:00
- export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
2018-01-22 09:38:35 +00:00
2017-12-06 19:08:20 +00:00
- ./autogen.sh
- ./configure $CONFIGURE_OPTS
- make
2018-02-15 09:25:24 +00:00
- make check || .ci/fail.sh
2017-12-06 19:08:20 +00:00
- os : osx
compiler : clang
install :
# https://github.com/harfbuzz/harfbuzz/issues/345
- export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
- brew update;
# Workaround Travis/brew bug
- brew uninstall libtool && brew install libtool
2018-04-09 20:21:57 +00:00
- brew install ragel freetype glib gobject-introspection cairo icu4c graphite2 || true
2017-12-06 19:08:20 +00:00
- brew link --force icu4c # icu4c is keg-only
script :
- ./autogen.sh
- ./configure $CONFIGURE_OPTS --with-coretext
- make
2018-02-15 09:25:24 +00:00
- make check || .ci/fail.sh
2017-12-06 19:08:20 +00:00
2013-03-05 06:37:44 +00:00
notifications :
irc : "irc.freenode.org#harfbuzz"
2018-02-14 21:45:39 +00:00
email : harfbuzz-bots-chatter@googlegroups.com
2015-06-13 00:37:41 +00:00
addons :
2015-10-19 18:11:01 +00:00
apt :
packages :
- pkg-config # for autogen.sh
- ragel
2018-03-03 19:39:25 +00:00
- lcov
2015-10-19 18:11:01 +00:00
- 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
2018-01-22 09:38:35 +00:00
#- libgirepository1.0-dev # for gobject-introspection
2018-02-12 07:57:00 +00:00
coverity_scan :
project :
2018-02-28 12:13:23 +00:00
name : behdad/harfbuzz
2018-02-12 07:57:00 +00:00
version : 1.0
description : HarfBuzz OpenType text shaping engine
2018-02-14 21:45:39 +00:00
notification_email : harfbuzz-bots-chatter@googlegroups.com
2018-02-12 07:57:00 +00:00
build_command_prepend : ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
build_command : make
2018-02-12 08:26:32 +00:00
branch_pattern : coverity_scan