blob: 5b5ae0e71eec4deb4d71ffe5e2cd43f771f97b70 [file] [log] [blame]
Khaled Hosnyd5382012015-11-24 12:46:35 +04001# Build Configuration for Travis
Khaled Hosny4b4948d2016-01-02 00:36:19 +04002dist: trusty
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +02003
Behdad Esfahbod5f705b42013-03-05 01:37:44 -05004language: cpp
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +02005
Behdad Esfahbod9b89fc52014-10-01 17:20:31 -04006env:
7 global:
Behdad Esfahbodef40ca82014-10-01 18:07:27 -04008 - CPPFLAGS=""
9 - CFLAGS="-Werror --coverage"
Khaled Hosny4b4948d2016-01-02 00:36:19 +040010 - CXXFLAGS="-Werror -Wno-deprecated-register --coverage" # glib uses register and clang raises a warning
Behdad Esfahbodef40ca82014-10-01 18:07:27 -040011 - LDFLAGS="--coverage"
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020012 - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
13 - NOCONFIGURE=1
14
15matrix:
16 include:
17 - os: linux
18 compiler: gcc
19 script:
20 - ./autogen.sh
21 - ./configure $CONFIGURE_OPTS --enable-gtk-doc
22 - make
23 - make check || (cat */test-suite.log test/*/test-suite.log && false)
24 after_success:
25 - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
26 - bash .ci/deploy-docs.sh
27
28 - os: linux
29 compiler: clang
30 script:
31 - ./autogen.sh
32 - ./configure $CONFIGURE_OPTS
33 - make
34 - make check || (cat */test-suite.log test/*/test-suite.log && false)
35
36 - os: osx
37 compiler: clang
38 install:
39 # https://github.com/harfbuzz/harfbuzz/issues/345
40 - export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
41 - brew update;
42 # Workaround Travis/brew bug
43 - brew uninstall libtool && brew install libtool
44 - brew install ragel freetype glib gobject-introspection cairo icu4c graphite2
45 - brew link --force icu4c # icu4c is keg-only
46 script:
47 - ./autogen.sh
48 - ./configure $CONFIGURE_OPTS --with-coretext
49 - make
50 - make check || (cat */test-suite.log test/*/test-suite.log && false)
51
Behdad Esfahbod5f705b42013-03-05 01:37:44 -050052notifications:
53 irc: "irc.freenode.org#harfbuzz"
54 email: harfbuzz@lists.freedesktop.org
Behdad Esfahbodf0c80062015-06-12 17:37:41 -070055
56addons:
Ebrahim Byagowiba096bc2015-10-19 21:41:01 +033057 apt:
58 packages:
59 - pkg-config # for autogen.sh
60 - ragel
61 - gtk-doc-tools
62 - libfreetype6-dev # for font function
63 - libglib2.0-dev # for font functions / tests / utils
64 - libcairo2-dev # for utils
65 - libicu-dev # for extra unicode functions
66 - libgraphite2-dev # for extra shapers
67 - # libgirepository1.0-dev # for gobject-introspection