Commit 84a317cf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

travis: install nghttp2 on linux builds

Closes #1642
parent f8dba473
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
language: c
language: c
sudo: false
sudo: required
addons:
addons:
    apt:
    apt:
        sources:
        sources:
@@ -11,6 +11,10 @@ addons:
            - lcov
            - lcov
            - clang-3.7
            - clang-3.7
            - valgrind
            - valgrind
            - libev-dev
            - libc-ares-dev
            - g++-4.8
            - libstdc++-4.8-dev


matrix:
matrix:
    include:
    include:
@@ -46,6 +50,11 @@ install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update > /dev/null; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew reinstall libtool > /dev/null; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew reinstall libtool > /dev/null; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install openssl libidn rtmpdump libssh2 c-ares libmetalink libressl nghttp2; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install openssl libidn rtmpdump libssh2 c-ares libmetalink libressl nghttp2; fi
  - if [ $TRAVIS_OS_NAME = linux ]; then
      curl -L https://github.com/nghttp2/nghttp2/releases/download/v1.24.0/nghttp2-1.24.0.tar.gz |
         tar xzf - &&
         (cd nghttp2-1.24.0 && CXX="g++-4.8" ./configure --prefix=/usr --disable-threads --enable-app && make && sudo make install);
    fi


before_script:
before_script:
    - ./buildconf
    - ./buildconf