.travis.yml 3.2 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
    - CPPFLAGS=""
9 10
    - 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
K
Khaled Hosny 已提交
11 12
    - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
    - NOCONFIGURE=1
13
    # COVERITY_SCAN_TOKEN
14
    - secure: "MRJtVu/fQoWNwMAamvIJBCX/1SMvEuEUk/ljAif/y2/3syyWgxFGp17UGnDILdoZYyCqTM+jQciY2P0nVqbjjOAUlML4QOAalqw8kPp8iTsnHUe+KOMVrOVP6p6qAQxk1im1O41cCMkmVKvk+NXe/on5euz6LGF2laHZaOAMoes="
K
Khaled Hosny 已提交
15 16 17 18 19 20

matrix:
  include:
    - os: linux
      compiler: gcc
      script:
E
Ebrahim Byagowi 已提交
21
        # Remove these two lines when Travis updated its distro
22
        - 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 ..
E
Ebrahim Byagowi 已提交
23
        - export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
24

K
Khaled Hosny 已提交
25
        - ./autogen.sh
26
        - ./configure $CONFIGURE_OPTS --enable-gtk-doc --enable-code-coverage
K
Khaled Hosny 已提交
27
        - make
K
Khaled Hosny 已提交
28
        - make check || .ci/fail.sh
29
        - rm -rf freetype-2.9
K
Khaled Hosny 已提交
30 31
      after_success:
        - bash .ci/run-coveralls.sh # for coveralls.io code coverage tracking
B
Behdad Esfahbod 已提交
32
        - bash <(curl -s https://codecov.io/bash)
K
Khaled Hosny 已提交
33
        - bash .ci/deploy-docs.sh
34
        - bash .ci/trigger-coverity.sh
K
Khaled Hosny 已提交
35 36 37 38

    - os: linux
      compiler: clang
      script:
E
Ebrahim Byagowi 已提交
39
        # Remove these two lines when Travis updated its distro
40
        - 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 ..
E
Ebrahim Byagowi 已提交
41
        - export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
42

K
Khaled Hosny 已提交
43 44 45
        - ./autogen.sh
        - ./configure $CONFIGURE_OPTS
        - make
K
Khaled Hosny 已提交
46
        - make check || .ci/fail.sh
K
Khaled Hosny 已提交
47 48 49 50 51 52 53

    - os: osx
      compiler: clang
      install:
        - brew update;
          # Workaround Travis/brew bug
        - brew uninstall libtool && brew install libtool
54
        - brew install ragel freetype glib gobject-introspection cairo icu4c graphite2 || true
K
Khaled Hosny 已提交
55 56 57 58 59
        - brew link --force icu4c # icu4c is keg-only
      script:
        - ./autogen.sh
        - ./configure $CONFIGURE_OPTS --with-coretext
        - make
K
Khaled Hosny 已提交
60
        - make check || .ci/fail.sh
K
Khaled Hosny 已提交
61

62 63
notifications:
  irc: "irc.freenode.org#harfbuzz"
64
  email: harfbuzz-bots-chatter@googlegroups.com
B
Behdad Esfahbod 已提交
65 66

addons:
67 68 69 70
  apt:
    packages:
      - pkg-config # for autogen.sh
      - ragel
71
      - lcov
72 73 74 75 76 77
      - 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
78
      #- libgirepository1.0-dev # for gobject-introspection
79 80 81

  coverity_scan:
    project:
82
      name: behdad/harfbuzz
83 84
      version: 1.0
      description: HarfBuzz OpenType text shaping engine
85
    notification_email: harfbuzz-bots-chatter@googlegroups.com
86 87
    build_command_prepend: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
    build_command: make
E
minor  
Ebrahim Byagowi 已提交
88
    branch_pattern: coverity_scan