.travis.yml 1.3 KB
Newer Older
1 2
language: cpp
compiler:
B
Behdad Esfahbod 已提交
3
  #- clang
4
  - gcc
B
Behdad Esfahbod 已提交
5 6 7 8
env:
  global:
    - FEATURES="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
    - CPPFLAGS="-Werror -fprofile-arcs -ftest-coverage" LDFLAGS="-lgcov"
B
Behdad Esfahbod 已提交
9
before_install:
A
Anthony Carrico 已提交
10 11 12 13 14
  - sudo apt-get install pkg-config ragel gtk-doc-tools # for autogen.sh
  - sudo apt-get install libfreetype6-dev # for font functions
  - sudo apt-get install libglib2.0-dev # for font functions / tests / utils
  - sudo apt-get install libcairo2-dev # for utils
  - sudo apt-get install libicu-dev # for extra unicode functions
B
Behdad Esfahbod 已提交
15
  - sudo apt-get install libgraphite2-dev # for extra shapers
16
  - sudo pip install cpp-coveralls # for coveralls.io code coverage tracking
B
Behdad Esfahbod 已提交
17 18 19 20 21
install:
  - true
before_script:
  - true
script:
22
  - NOCONFIGURE=1 ./autogen.sh
23 24 25 26 27 28
  - echo CC=$CC
  - echo CXX=$CXX
  - echo CPP=$CPP
  - echo LD=$LD
  - echo CPPFLAGS="$CPPFLAGS"
  - echo LDFLAGS="$LDFLAGS"
B
Behdad Esfahbod 已提交
29
  - ./configure $FEATURES CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
30 31
  - make
  - make check
B
Behdad Esfahbod 已提交
32
after_success:
B
Behdad Esfahbod 已提交
33
  - rm -f src/.libs/NONE.gcov # coveralls chokes on this
B
Behdad Esfahbod 已提交
34
  - touch src/NONE # see if this makes coveralls happy
35
  - coveralls
B
Behdad Esfahbod 已提交
36 37 38 39
after_failure:
  - true
after_script:
  - true
40 41 42
notifications:
  irc: "irc.freenode.org#harfbuzz"
  email: harfbuzz@lists.freedesktop.org