Skip to content

Commit

Permalink
Merge branch 'v3.0-openresty' into v3.0-work
Browse files Browse the repository at this point in the history
  • Loading branch information
Brugarolas authored Mar 19, 2024
2 parents 40efe9a + 15f58c9 commit cfa3a87
Show file tree
Hide file tree
Showing 82 changed files with 14,030 additions and 509 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ $RECYCLE.BIN/
.tags
.cache
build
*~
tags
*.swo
61 changes: 61 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
sudo: required
dist: bionic

branches:
only:
- "v2.1-agentzh"

os: linux
arch:
- amd64
- arm64
- s390x

language: c

compiler:
- gcc

addons:
apt:
packages:
- axel
- cpanminus
- libtest-base-perl
- libtext-diff-perl
- libtest-longstring-perl
- liblist-moreutils-perl
- libparallel-forkmanager-perl
- libgd-dev
- libmpc-dev
- build-essential
- libgtk2.0-dev
- valgrind

env:
global:
- JOBS=3
- LUAJIT_PREFIX=/opt/luajit21
- LUAJIT_SYSM_PREFIX=/opt/luajit21-sysm
- LUAJIT_COMMON_XCFLAGS="-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_NUMMODE=2 -O1"
- LUAJIT_COMMON_XCFLAGS=$( [ ${TRAVIS_CPU_ARCH} == "amd64" ] && echo "$LUAJIT_COMMON_XCFLAGS -msse4.2" || echo "$LUAJIT_COMMON_XCFLAGS" )

matrix:
- LUAJIT_XCFLAGS="$LUAJIT_COMMON_XCFLAGS"
- LUAJIT_XCFLAGS="-DLUAJIT_ENABLE_LUA52COMPAT $LUAJIT_COMMON_XCFLAGS" LUA52=1
- LUAJIT_XCFLAGS="-DLUAJIT_USE_VALGRIND -DLUAJIT_USE_SYSMALLOC -DLUAJIT_ENABLE_LUA52COMPAT $LUAJIT_COMMON_XCFLAGS" LUA52=1 FLAGS=$( [ ${TRAVIS_CPU_ARCH} != "s390x" ] && echo '-v' )
- LUAJIT_XCFLAGS="-DLUAJIT_DISABLE_GC64 -DLUAJIT_ENABLE_LUA52COMPAT $LUAJIT_COMMON_XCFLAGS" LUA52=1

install:
- git clone https://github.com/openresty/luajit2-test-suite.git ../luajit2-test-suite

script:
- echo ${LUAJIT_COMMON_XCFLAGS}
- valgrind --version
- /usr/bin/env perl $(command -v cpanm) --sudo --notest IPC::Run3 Test::Base Test::LongString Parallel::ForkManager > build.log 2>&1 || (cat build.log && exit 1)
- cd ../luajit2
- make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS="$LUAJIT_XCFLAGS" > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install PREFIX=$LUAJIT_PREFIX > build.log 2>&1 || (cat build.log && exit 1)
- if [ ${TRAVIS_CPU_ARCH} == "amd64" ]; then PATH=/opt/luajit21/bin:$PATH prove -I. t; fi
- cd ../luajit2-test-suite
- ./run-tests -j 1 $FLAGS $LUAJIT_PREFIX
4 changes: 4 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ LuaJIT -- a Just-In-Time Compiler for Lua. https://luajit.org/

Copyright (C) 2005-2023 Mike Pall. All rights reserved.

Copyright (C) 2017-2018 Yichun Zhang. All rights reserved.

Copyright (C) 2017-2018 OpenResty Inc. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
Loading

0 comments on commit cfa3a87

Please sign in to comment.