File: .travis.yml

package info (click to toggle)
libnginx-mod-http-cache-purge 1%3A2.5.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: ansic: 1,605; sh: 79; makefile: 3
file content (49 lines) | stat: -rw-r--r-- 1,771 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: required
os: linux
dist: trusty
language: c
compiler:
  - gcc
  - clang
cache:
  apt: true
  directories:
    - download-cache
env:
  global:
    - JOBS=4
    - NGINX_PREFIX=/opt/nginx
  matrix:
    - NGINX_VERSION=1.18.0
    - NGINX_VERSION=1.19.2

before_install:
  - mkdir --parents download-cache
  - sudo apt-get update -qq
  - sudo apt-get install -qq zlib1g-dev libpcre3-dev cpanminus
  # Get OpenSSL 1.0.2 from Ubuntu Xenial
  # https://packages.ubuntu.com/xenial-updates/libssl1.0.0
  - test -f download-cache/libssl1.0.0_1.0.2g-1ubuntu4.16_amd64.deb || wget -O download-cache/libssl1.0.0_1.0.2g-1ubuntu4.17_amd64.deb "http://de.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.17_amd64.deb"
  # https://packages.ubuntu.com/xenial/libssl-dev
  - test -f download-cache/libssl-dev_1.0.2g-1ubuntu4.16_amd64.deb || wget -O download-cache/libssl-dev_1.0.2g-1ubuntu4.17_amd64.deb "http://de.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.2g-1ubuntu4.17_amd64.deb"
  - sudo dpkg -i download-cache/libssl*_amd64.deb
  # Test::Nginx
  - git clone https://github.com/openresty/test-nginx.git test-nginx
  - cd test-nginx/ && sudo cpanm . && cd ..
  # NGINX source
  - test -f download-cache/nginx-$NGINX_VERSION.tar.gz || wget -O download-cache/nginx-$NGINX_VERSION.tar.gz http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz

install:
  - tar -xzf download-cache/nginx-${NGINX_VERSION}.tar.gz
  - cd nginx-${NGINX_VERSION}/
  - ./configure --prefix=${NGINX_PREFIX} --with-debug --with-http_ssl_module --add-module=${PWD}/..
  - make -j${JOBS}
  - sudo make install
  - cd ..
  - export PATH="${NGINX_PREFIX}/sbin:$PATH"
#  - export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}

script:
  - nginx -V
  - ldd $(which nginx)
  - prove t