Permalink
Browse files

travis: added luajit2-test-suite.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information...
doujiang24 authored and agentzh committed Jul 30, 2017
1 parent 201f897 commit 7897b76bc047a546afd5e7c591c0d3e91c6b5039
Showing with 49 additions and 0 deletions.
  1. +49 −0 .travis.yml
View
@@ -0,0 +1,49 @@
sudo: required
dist: trusty
os: linux
language: c
compiler:
- gcc
- clang
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
install:
- git clone https://github.com/openresty/luajit2-test-suite.git ../luajit2-test-suite
script:
- valgrind --version
- make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_NUMMODE=2 -msse4.2 -O1' > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install PREFIX=$LUAJIT_PREFIX > build.log 2>&1 || (cat build.log && exit 1)
- cd ../luajit2-test-suite
- ./run-tests -j $JOBS $LUAJIT_PREFIX
- echo "starting valgrind mod"
- cd ../luajit2
- make clean
- make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_SYSM_PREFIX CC=$CC XCFLAGS='-DLUAJIT_NUMMODE=2 -DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_USE_VALGRIND -DLUAJIT_USE_SYSMALLOC -O1 -msse4.2' > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install PREFIX=$LUAJIT_SYSM_PREFIX > build.log 2>&1 || (cat build.log && exit 1)
- cd ../luajit2-test-suite
- ./run-tests -j $JOBS -v $LUAJIT_SYSM_PREFIX

0 comments on commit 7897b76

Please sign in to comment.