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

4
language: cpp
K
Khaled Hosny 已提交
5

B
Behdad Esfahbod 已提交
6 7
env:
  global:
8
    - CPPFLAGS=""
K
Khaled Hosny 已提交
9 10
    - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
    - NOCONFIGURE=1
11
    # COVERITY_SCAN_TOKEN
B
Behdad Esfahbod 已提交
12
    - secure: "k6l/18dpsoPAf0E5RQWCr+rgjbHns0H3k0WzSYovCoVg0B7RVlV8x8OjyEOBzEvXI4aaHRdH6MHCPDFnX4fa7ysImlT6LxxIG8YhDdLkJWyS0hHbcJiGxko9AhAGzOZcDl8fZi13d697wagMqqXpjN5v2T/AQm8t4X9z2otJosY="
K
Khaled Hosny 已提交
13 14 15 16 17 18

matrix:
  include:
    - os: linux
      compiler: gcc
      script:
19 20 21 22
        # Remove the following three lines when Travis updates its distro
        - export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig"
        - export LD_LIBRARY_PATH="$HOME/.local/lib"
        - bash .ci/build-freetype.sh
23

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

    - os: linux
      compiler: clang
      script:
38 39 40 41
        # Remove the following three lines when Travis updates its distro
        - export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig"
        - export LD_LIBRARY_PATH="$HOME/.local/lib"
        - bash .ci/build-freetype.sh
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
notifications:
  irc: "irc.freenode.org#harfbuzz"
50
  email: harfbuzz-bots-chatter@googlegroups.com
B
Behdad Esfahbod 已提交
51

52 53 54 55
cache:
  directories:
    - /home/travis/.local

B
Behdad Esfahbod 已提交
56
addons:
57 58 59 60
  apt:
    packages:
      - pkg-config # for autogen.sh
      - ragel
61
      - lcov
62 63 64 65 66 67
      - 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
68
      #- libgirepository1.0-dev # for gobject-introspection
69 70 71

  coverity_scan:
    project:
72
      name: behdad/harfbuzz
73 74
      version: 1.0
      description: HarfBuzz OpenType text shaping engine
75
    notification_email: harfbuzz-bots-chatter@googlegroups.com
76 77
    build_command_prepend: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
    build_command: make
E
minor  
Ebrahim Byagowi 已提交
78
    branch_pattern: coverity_scan