.travis.yml 2.0 KB
Newer Older
K
Khaled Hosny 已提交
1
# Build Configuration for Travis
K
Khaled Hosny 已提交
2
dist: trusty
K
Khaled Hosny 已提交
3

4
language: cpp
K
Khaled Hosny 已提交
5

B
Behdad Esfahbod 已提交
6 7
env:
  global:
8 9
    - CPPFLAGS=""
    - CFLAGS="-Werror --coverage"
K
Khaled Hosny 已提交
10
    - CXXFLAGS="-Werror -Wno-deprecated-register --coverage" # glib uses register and clang raises a warning
11
    - LDFLAGS="--coverage"
K
Khaled Hosny 已提交
12 13 14 15 16 17 18 19 20 21 22
    - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
    - NOCONFIGURE=1

matrix:
  include:
    - os: linux
      compiler: gcc
      script:
        - ./autogen.sh
        - ./configure $CONFIGURE_OPTS --enable-gtk-doc
        - make
23
        - make check || (cat `find -name '*.log'` && false)
K
Khaled Hosny 已提交
24 25 26 27 28 29 30 31 32 33
      after_success:
        - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
        - bash .ci/deploy-docs.sh

    - os: linux
      compiler: clang
      script:
        - ./autogen.sh
        - ./configure $CONFIGURE_OPTS
        - make
34
        - make check || (cat `find -name '*.log'` && false)
K
Khaled Hosny 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

    - 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
        - brew install ragel freetype glib gobject-introspection cairo icu4c graphite2
        - brew link --force icu4c # icu4c is keg-only
      script:
        - ./autogen.sh
        - ./configure $CONFIGURE_OPTS --with-coretext
        - make
50
        - make check || (cat `find -name '*.log'` && false)
K
Khaled Hosny 已提交
51

52 53 54
notifications:
  irc: "irc.freenode.org#harfbuzz"
  email: harfbuzz@lists.freedesktop.org
B
Behdad Esfahbod 已提交
55 56

addons:
57 58 59 60 61 62 63 64 65 66 67
  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