Skip to content

bump to 1.31.0#86

Open
zhuizhuhaomeng wants to merge 1 commit into
masterfrom
or-1.31.0
Open

bump to 1.31.0#86
zhuizhuhaomeng wants to merge 1 commit into
masterfrom
or-1.31.0

tests: update nginx to 1.31.0.

01fc4b1
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request cancelled May 15, 2026 in 1d 0h 1m 20s

Build Canceled

The build canceled. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #86 bump to 1.31.0.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language C
Operating System Linux (Focal)
Compiler Version gcc
Build Configuration
{
  "language": "c",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "sudo": true,
  "branches": {
    "only": [
      "master"
    ]
  },
  "compiler": [
    "gcc"
  ],
  "addons": {
    "apt": {
      "packages": [
        "axel",
        "cpanminus",
        "libtest-base-perl",
        "libtext-diff-perl",
        "liburi-perl",
        "libwww-perl",
        "libtest-longstring-perl",
        "liblist-moreutils-perl",
        "libgd-dev",
        "libipc-run-perl",
        "gdb"
      ]
    }
  },
  "env": [
    "global={:JOBS=>\"3\"}={:NGX_BUILD_JOBS=>\"$JOBS\"}={:LUAJIT_PREFIX=>\"/opt/luajit21\"}={:LUAJIT_LIB=>\"$LUAJIT_PREFIX/lib\"}={:LUAJIT_INC=>\"$LUAJIT_PREFIX/include/luajit-2.1\"}={:LD_LIBRARY_PATH=>\"$LUAJIT_LIB:$LD_LIBRARY_PATH\"}={:TEST_NGINX_SLEEP=>\"0.003\"}={:OPENSSL_PREFIX=>\"/usr/local/openresty/openssl3\"}={:OPENSSL_LIB=>\"$OPENSSL_PREFIX/lib\"}={:OPENSSL_INC=>\"$OPENSSL_PREFIX/include\"}={:OPENSSL_VER=>\"1.1.1g\"} jobs={:NGINX_VERSION=>\"1.31.0\"}"
  ],
  "before_install": [
    "sudo apt-get install -y cpanminus wget",
    "cpanm --sudo --notest Test::Nginx IPC::Run Test2::Util > build.log 2>&1 || (cat build.log && exit 1)",
    "sudo cpanm --notest Test::Base",
    "wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -",
    "echo \"deb http://openresty.org/package/ubuntu $(lsb_release -sc) main\" | sudo tee /etc/apt/sources.list.d/openresty.list",
    "sudo apt-get update",
    "sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openresty-pcre2 openresty-openssl3 openresty-pcre2-dev openresty-openssl3-dev"
  ],
  "install": [
    "if [ ! -d download-cache ]; then mkdir download-cache; fi",
    "git clone https://github.com/openresty/openresty.git ../openresty",
    "git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core",
    "git clone https://github.com/openresty/lua-resty-lrucache.git ../lua-resty-lrucache",
    "git clone https://github.com/openresty/nginx-devel-utils.git",
    "git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module",
    "git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx",
    "git clone https://github.com/openresty/stream-lua-nginx-module.git ../stream-lua-nginx-module",
    "git clone -b v2.1-agentzh https://github.com/openresty/luajit2.git"
  ],
  "script": [
    "cd luajit2/",
    "make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT -msse4.2'",
    "sudo make install PREFIX=$LUAJIT_PREFIX",
    "cd ..",
    "export PATH=$PATH:`pwd`/nginx-devel-utils",
    "ngx-build $NGINX_VERSION --with-ipv6 --with-cc-opt=\"-I$OPENSSL_INC\" --with-ld-opt=\"-L$OPENSSL_LIB -Wl,-rpath,$OPENSSL_LIB\" --with-http_realip_module --with-http_ssl_module --add-module=../lua-nginx-module --add-module=../stream-lua-nginx-module --with-debug --with-stream --with-stream_ssl_module",
    "export PATH=$PATH:`pwd`/work/nginx/sbin",
    "prove -I. -r t"
  ]
}