diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-11-05 15:38:17 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-11-05 15:38:17 +0100 |
commit | c675c40295045d4988eeb6291c54eb48f138822f (patch) | |
tree | 048c956ff4f8553773780c4238a8f9b5970f33ce | |
parent | 609aa62f53387f35eaf728c4e4692badbce68ef2 (diff) |
travis: add a job with brotli enabled
-rw-r--r-- | .travis.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 76b26db94..8db95272f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,10 @@ matrix: dist: trusty env: T=normal C=--enable-ares - os: linux + compiler: gcc + dist: trusty + env: T=normal BROTLI=yes + - os: linux compiler: clang dist: trusty env: T=debug @@ -90,6 +94,20 @@ install: before_script: - ./buildconf + - | + # No brotli package available for Trusty. Download & compile from source. + # Cannot be done in the install script because cmake is needed. + if [ "$TRAVIS_OS_NAME" = linux -a "$BROTLI" ]; then + curl -L https://github.com/google/brotli/archive/v1.0.1.tar.gz | + tar xzf - && + ( + cd brotli-1.0.1 && + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib && + make && + sudo make install + ) + fi script: - | |