1# Build Configuration for Travis 2sudo: required # For Trusty beta 3os: 4 - linux 5 - osx 6dist: trusty 7language: cpp 8compiler: 9 - clang 10 - gcc 11env: 12 global: 13 - CPPFLAGS="" 14 - CFLAGS="-Werror --coverage" 15 - CXXFLAGS="-Werror -Wno-deprecated-register --coverage" # glib uses register and clang raises a warning 16 - LDFLAGS="--coverage" 17install: 18 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user nose; fi 19 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user cpp-coveralls; fi # for coveralls.io code coverage tracking 20 - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=$HOME/.local/bin:$PATH; fi # Make sure we can find the above Python packages 21 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi; 22 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ragel freetype glib gobject-introspection cairo icu4c graphite2; fi 23 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew link --force icu4c; fi # icu4c is keg-only 24script: 25 - NOCONFIGURE=1 ./autogen.sh 26 - export CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2" 27 - if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --enable-gtk-doc"; fi 28 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --with-coretext"; fi 29 - ./configure $CONFIGURE_OPTS 30 - make 31 - make check 32 - if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SLUG" == "behdad/harfbuzz" ]; then rm -f src/.libs/NONE.gcov; touch src/NONE; coveralls -e docs; fi 33after_success: 34 - if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then bash .ci/deploy-docs.sh; fi 35notifications: 36 irc: "irc.freenode.org#harfbuzz" 37 email: harfbuzz@lists.freedesktop.org 38 39addons: 40 apt: 41 packages: 42 - pkg-config # for autogen.sh 43 - ragel 44 - gtk-doc-tools 45 - libfreetype6-dev # for font function 46 - libglib2.0-dev # for font functions / tests / utils 47 - libcairo2-dev # for utils 48 - libicu-dev # for extra unicode functions 49 - libgraphite2-dev # for extra shapers 50 - # libgirepository1.0-dev # for gobject-introspection 51