blob: 703fac25c4d4770f44e03bd793b4837f65f7e26e [file] [log] [blame]
Khaled Hosnyd5382012015-11-24 12:46:35 +04001# Build Configuration for Travis
Ebrahim Byagowi6d58b452019-06-08 00:40:18 +04302dist: trusty
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +02003
Behdad Esfahbod5f705b42013-03-05 01:37:44 -05004language: cpp
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +02005
Behdad Esfahbod9b89fc52014-10-01 17:20:31 -04006env:
7 global:
Behdad Esfahbodef40ca82014-10-01 18:07:27 -04008 - CPPFLAGS=""
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +02009 - CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
10 - NOCONFIGURE=1
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033011 # COVERITY_SCAN_TOKEN
Behdad Esfahbod8f3ee172018-11-20 01:38:23 -050012 - secure: "k6l/18dpsoPAf0E5RQWCr+rgjbHns0H3k0WzSYovCoVg0B7RVlV8x8OjyEOBzEvXI4aaHRdH6MHCPDFnX4fa7ysImlT6LxxIG8YhDdLkJWyS0hHbcJiGxko9AhAGzOZcDl8fZi13d697wagMqqXpjN5v2T/AQm8t4X9z2otJosY="
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020013
14matrix:
15 include:
16 - os: linux
17 compiler: gcc
18 script:
Khaled Hosnyb1dfb8c2019-03-14 21:41:25 +020019 # Remove the following three lines when Travis updates its distro
20 - export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig"
21 - export LD_LIBRARY_PATH="$HOME/.local/lib"
22 - bash .ci/build-freetype.sh
Ebrahim Byagowibd752db2018-01-22 13:08:35 +033023
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020024 - ./autogen.sh
Ebrahim Byagowiecef95b2018-03-03 23:03:13 +033025 - ./configure $CONFIGURE_OPTS --enable-gtk-doc --enable-code-coverage
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020026 - make
Khaled Hosny8e3b4c02018-02-15 11:25:24 +020027 - make check || .ci/fail.sh
Ebrahim Byagowi00dd3212018-03-03 23:26:11 +033028 - rm -rf freetype-2.9
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020029 after_success:
Behdad Esfahbodc49e43c2018-11-20 01:06:50 -050030 - bash .ci/run-coveralls.sh # coveralls.io code coverage
31 - bash <(curl -s https://codecov.io/bash) # codecov.io code coverage
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020032 - bash .ci/deploy-docs.sh
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033033 - bash .ci/trigger-coverity.sh
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020034
35 - os: linux
36 compiler: clang
37 script:
Khaled Hosnyb1dfb8c2019-03-14 21:41:25 +020038 # Remove the following three lines when Travis updates its distro
39 - export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig"
40 - export LD_LIBRARY_PATH="$HOME/.local/lib"
41 - bash .ci/build-freetype.sh
Ebrahim Byagowibd752db2018-01-22 13:08:35 +033042
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020043 - ./autogen.sh
44 - ./configure $CONFIGURE_OPTS
45 - make
Khaled Hosny8e3b4c02018-02-15 11:25:24 +020046 - make check || .ci/fail.sh
Khaled Hosny3ce6c7b2017-12-06 21:08:20 +020047
Behdad Esfahbod5f705b42013-03-05 01:37:44 -050048notifications:
49 irc: "irc.freenode.org#harfbuzz"
Ebrahim Byagowi20022572018-02-15 01:15:39 +033050 email: harfbuzz-bots-chatter@googlegroups.com
Behdad Esfahbodf0c80062015-06-12 17:37:41 -070051
Khaled Hosnyb1dfb8c2019-03-14 21:41:25 +020052cache:
53 directories:
54 - /home/travis/.local
55
Behdad Esfahbodf0c80062015-06-12 17:37:41 -070056addons:
Ebrahim Byagowiba096bc2015-10-19 21:41:01 +033057 apt:
58 packages:
59 - pkg-config # for autogen.sh
60 - ragel
Ebrahim Byagowia0031c12018-03-03 23:09:25 +033061 - lcov
Ebrahim Byagowiba096bc2015-10-19 21:41:01 +033062 - gtk-doc-tools
63 - libfreetype6-dev # for font function
64 - libglib2.0-dev # for font functions / tests / utils
65 - libcairo2-dev # for utils
66 - libicu-dev # for extra unicode functions
67 - libgraphite2-dev # for extra shapers
Ebrahim Byagowibd752db2018-01-22 13:08:35 +033068 #- libgirepository1.0-dev # for gobject-introspection
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033069
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033070 coverity_scan:
71 project:
Ebrahim Byagowi55a4dfa2018-02-28 15:43:23 +033072 name: behdad/harfbuzz
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033073 version: 1.0
74 description: HarfBuzz OpenType text shaping engine
Ebrahim Byagowi20022572018-02-15 01:15:39 +033075 notification_email: harfbuzz-bots-chatter@googlegroups.com
Ebrahim Byagowi7daa2822018-02-12 11:27:00 +033076 build_command_prepend: ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
77 build_command: make
Ebrahim Byagowi82e04752018-02-12 11:56:32 +033078 branch_pattern: coverity_scan