language: c

before_install:
- sudo apt-get update -q
- sudo apt-get install -qq apt-transport-https python-docutils
- curl https://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
- echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0" | sudo tee /etc/apt/sources.list.d/varnish-cache.list > varnish
- sudo apt-get -q update
- sudo apt-get install varnish libvarnishapi-dev

before_script:
- wget https://repo.varnish-cache.org/source/varnish-4.0.2.tar.gz -O - | tar -xz
- ./autogen.sh
- ./configure VARNISHSRC=varnish-4.0.2 --prefix=/usr
- make

script:
- make check -j4

compiler:
- clang
- gcc

language: c
compiler:
  - clang
  - gcc
before_install:
  - sudo apt-get update
  - sudo apt-get install apt-transport-https python-docutils
  - curl -s https://repo.varnish-cache.org/ubuntu/GPG-key.txt |
    sudo apt-key add -
  - echo "deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.1" |
    sudo tee /etc/apt/sources.list.d/varnish-cache.list
  - sudo apt-get update
  - sudo apt-get install varnish libvarnishapi-dev
  - ./autogen.sh
script:
  - ./configure && make CFLAGS="-Wall -Wextra -Werror" &&
    make check VERBOSE=1

Switch to 4.1 and cleanup
Switch to 4.1 and cleanup
