-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
language: c | ||
sudo: false | ||
|
||
env: | ||
global: | ||
- LUAROCKS=2.4.3 | ||
- ROCKSPEC=rockspecs/lua-protobuf-scm-1.rockspec | ||
matrix: | ||
- LUA="lua 5.1" | ||
- LUA="lua 5.2" | ||
- LUA="lua 5.3" | ||
- LUA="luajit 2.0" | ||
- LUA="luajit 2.1" | ||
|
||
branches: | ||
only: | ||
- master | ||
- new | ||
|
||
before_install: | ||
- pip install --user hererocks urllib3[secure] cpp-coveralls | ||
- hererocks env --$LUA -rlatest # Use latest LuaRocks, install into 'env' directory. | ||
- source env/bin/activate # Add directory with all installed binaries to PATH. | ||
|
||
install: | ||
# - sudo luarocks make $ROCKSPEC CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" | ||
- luarocks make $ROCKSPEC CFLAGS="-O3 -fPIC -Wall -Wextra --coverage" LIBFLAG="-shared --coverage" | ||
|
||
script: | ||
- lua test.lua | ||
# - lunit.sh test.lua | ||
|
||
after_success: | ||
- coveralls | ||
# - coveralls -b .. -r .. --dump c.report.json | ||
# - luacov-coveralls -j c.report.json -v | ||
|
||
notifications: | ||
email: | ||
on_success: change | ||
on_failure: always | ||
|
||
# vim: ft=yaml nu et sw=2 fdc=2 fdm=syntax |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package = "lua-protobuf" | ||
version = "scm-1" | ||
|
||
source = { | ||
url = "git://github.com/starwing/lua-protobuf.git", | ||
} | ||
|
||
description = { | ||
summary = "protobuf data support for Lua", | ||
detailed = [[ | ||
This project offers a simple C library for basic protobuf wire format encode/decode. | ||
]], | ||
homepage = "https://github.com/starwing/lua-protobuf", | ||
license = "MIT", | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1" | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { | ||
pb = "pb.c"; | ||
protoc = "protoc.lua"; | ||
} | ||
} |
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