summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2019-03-14 21:41:25 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2019-03-14 23:16:26 +0200
commitb1dfb8c850f36d4065190a779a6e3342a5fbb593 (patch)
tree89f24a3c61a29dad8dc89de67f2022acd2cf4c29 /.travis.yml
parent7de9f92ee9ced6f4c176459cf25f4ca931ca5ceb (diff)
downloadharfbuzz-b1dfb8c850f36d4065190a779a6e3342a5fbb593.tar.gz
[ci] Cache FreeType build on Travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 88967ddd..681471dc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,9 +16,10 @@ matrix:
- os: linux
compiler: gcc
script:
- # Remove these two lines when Travis updated its distro
- - 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 ..
- - export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
+ # 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
- ./autogen.sh
- ./configure $CONFIGURE_OPTS --enable-gtk-doc --enable-code-coverage
@@ -34,9 +35,10 @@ matrix:
- os: linux
compiler: clang
script:
- # Remove these two lines when Travis updated its distro
- - 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 ..
- - export LD_LIBRARY_PATH="$PWD/freetype-2.9/objs/.libs"
+ # 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
- ./autogen.sh
- ./configure $CONFIGURE_OPTS
@@ -57,6 +59,10 @@ notifications:
irc: "irc.freenode.org#harfbuzz"
email: harfbuzz-bots-chatter@googlegroups.com
+cache:
+ directories:
+ - /home/travis/.local
+
addons:
apt:
packages: