This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
lua_bufflib/.travis.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (31 sloc)
1011 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |