1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

travis: add a job with brotli enabled

This commit is contained in:
Patrick Monnerat 2017-11-05 15:38:17 +01:00
parent 609aa62f53
commit c675c40295

View File

@ -34,6 +34,10 @@ matrix:
compiler: gcc compiler: gcc
dist: trusty dist: trusty
env: T=normal C=--enable-ares env: T=normal C=--enable-ares
- os: linux
compiler: gcc
dist: trusty
env: T=normal BROTLI=yes
- os: linux - os: linux
compiler: clang compiler: clang
dist: trusty dist: trusty
@ -90,6 +94,20 @@ install:
before_script: before_script:
- ./buildconf - ./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: script:
- | - |