1language: c
2compiler:
3  - clang
4  - gcc
5
6addons:
7    apt:
8        packages:
9            - carton
10
11before_install:
12  # Fetch nginx source
13  - wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
14  - tar xvfz nginx-${NGINX_VERSION}.tar.gz
15  - cd nginx-${NGINX_VERSION}
16
17script:
18  # Build nginx
19  - ./configure --prefix=${TRAVIS_BUILD_DIR}/t/nginx --add-module=${TRAVIS_BUILD_DIR}
20  - make
21  - make install
22
23  # Run tests
24  - cd ${TRAVIS_BUILD_DIR}/t
25  - ./restart.sh
26  - carton install
27  - carton exec ./ziptest.pl
28
29env:
30  - NGINX_VERSION="1.10.3"
31  - NGINX_VERSION="1.11.13"
32  - NGINX_VERSION="1.12.1"
33  - NGINX_VERSION="1.13.5"
34