travis: allow_failures
[m6w6/ext-http] / travis / brotli.sh
1 #!/bin/bash
2
3 BROTLI_DIR="$with_http_libbrotli_dir"
4 BROTLI_SRC="$BROTLI_DIR.git"
5
6 if test -n "$BROTLI_DIR" && test "$BROTLI_DIR" != "no"; then
7 if test -d "$BROTLI_SRC"; then
8 cd "$BROTLI_SRC"
9 git pull
10 else
11 git clone https://github.com/google/brotli.git "$BROTLI_SRC"
12 cd "$BROTLI_SRC"
13 fi
14 git checkout $1
15 ./bootstrap
16 ./configure -C --prefix="$BROTLI_DIR"
17 make -j ${JOBS:2}
18 make install INSTALL=install
19 fi