blob: 0574924c3cd30c6cff9f3da84a2d80984b0be7c1 [file] [log] [blame]
Behdad Esfahbod5f705b42013-03-05 01:37:44 -05001language: cpp
2compiler:
Behdad Esfahbod5194d642014-10-01 17:03:26 -04003 #- clang
Behdad Esfahbod5f705b42013-03-05 01:37:44 -05004 - gcc
Behdad Esfahbod9b89fc52014-10-01 17:20:31 -04005env:
6 global:
7 - FEATURES="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
8 - CPPFLAGS="-Werror -fprofile-arcs -ftest-coverage" LDFLAGS="-lgcov"
Behdad Esfahbode281ed32014-10-01 16:09:08 -04009before_install:
Anthony Carricof7c72b42013-02-24 13:00:33 -050010 - sudo apt-get install pkg-config ragel gtk-doc-tools # for autogen.sh
11 - sudo apt-get install libfreetype6-dev # for font functions
12 - sudo apt-get install libglib2.0-dev # for font functions / tests / utils
13 - sudo apt-get install libcairo2-dev # for utils
14 - sudo apt-get install libicu-dev # for extra unicode functions
Behdad Esfahbodddc456a2013-08-26 17:34:18 -040015 - sudo apt-get install libgraphite2-dev # for extra shapers
Behdad Esfahboddfe80782014-10-01 16:38:47 -040016 - sudo pip install cpp-coveralls # for coveralls.io code coverage tracking
Behdad Esfahbode281ed32014-10-01 16:09:08 -040017install:
18 - true
19before_script:
20 - true
21script:
Behdad Esfahboddfe80782014-10-01 16:38:47 -040022 - NOCONFIGURE=1 ./autogen.sh
Behdad Esfahbod9b89fc52014-10-01 17:20:31 -040023 - ./configure $FEATURES CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
Behdad Esfahbod2a508dd2014-10-01 16:49:22 -040024 - make
25 - make check
Behdad Esfahbode281ed32014-10-01 16:09:08 -040026after_success:
Behdad Esfahboda68f2b62014-10-01 17:05:58 -040027 - rm -f src/.libs/NONE.gcov # coveralls chokes on this
Behdad Esfahbod9b89fc52014-10-01 17:20:31 -040028 - touch src/NONE # see if this makes coveralls happy
Behdad Esfahboddfe80782014-10-01 16:38:47 -040029 - coveralls
Behdad Esfahbode281ed32014-10-01 16:09:08 -040030after_failure:
31 - true
32after_script:
33 - true
Behdad Esfahbod5f705b42013-03-05 01:37:44 -050034notifications:
35 irc: "irc.freenode.org#harfbuzz"
36 email: harfbuzz@lists.freedesktop.org