Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
language: c
env:
global:
- LUA_CPATH="/home/travis/build/Choonster/lua_bufflib/?.so"
- LUA_LIBDIR=/usr/lib/x86_64-linux-gnu/
matrix:
- "LUA=lua5.1 LIBLUA=liblua5.1-dev LUA_INCDIR=/usr/include/lua5.1 LUA_LIB=lua5.1"
- "LUA=lua5.2 LIBLUA=liblua5.2-dev LUA_INCDIR=/usr/include/lua5.2 LUA_LIB=lua5.2"
- "LUA=luajit LIBLUA=libluajit-5.1-dev LUA_INCDIR=/usr/include/luajit-2.0 LUA_LIB=luajit-5.1"
branches:
only:
- master
#compiler:
# - "clang"
# - "gcc"
before_install:
- 'if [ $LUA = "luajit" ]; then sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y; fi'
install:
- "sudo apt-get install $LUA -y"
- "sudo apt-get install $LIBLUA -y"
script:
- "gcc -ansi -O2 -fPIC -I $LUA_INCDIR -L $LUA_LIBDIR -l$LUA_LIB -c lua_bufflib.c -o bufflib.o"
- "gcc -shared -o bufflib.so bufflib.o"
- "echo $PWD"
- "echo $CC"
- "ls bufflib.so"
- "$LUA -v test_bufflib.lua"
notifications:
email:
on_failure: always
on_success: change