Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version of Travis-CI integration #49

Merged
merged 8 commits into from Mar 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions .travis.yml
@@ -0,0 +1,30 @@
language: python
sudo: false

env:
- LUA="lua=5.1"
- LUA="lua=5.2"
- LUA="lua=5.3"
- LUA="luajit=2.0"
- LUA="luajit=2.1"

before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH

install:
- luarocks install luasec # optional dependency
- luarocks install luacov
- luarocks install luacov-coveralls

script:
- luarocks make $(ls rockspec/copas-[a-z]* | sort -r | head -n 1) # get latest development rockspec
- make test

after_success:
- cd test; luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install

branches:
except:
- gh-pages
13 changes: 13 additions & 0 deletions Makefile
Expand Up @@ -6,6 +6,11 @@ PREFIX = /usr/local
# System's lua directory (where Lua libraries are installed)
LUA_DIR= $(PREFIX)/share/lua/5.1

PKGPATH=-e "package.path='$$PWD/../src/?.lua;'..package.path"

# Lua interpreter
LUA=lua

install:
mkdir -p $(LUA_DIR)/copas
cp src/copas.lua $(LUA_DIR)/copas.lua
Expand All @@ -14,4 +19,12 @@ install:
cp src/copas/http.lua $(LUA_DIR)/copas/http.lua
cp src/copas/limit.lua $(LUA_DIR)/copas/limit.lua

test:
cd tests; $(LUA) $(PKGPATH) -lluacov largetransfer.lua
cd tests; $(LUA) $(PKGPATH) -lluacov testhttp.lua
cd tests; $(LUA) $(PKGPATH) -lluacov httpredirect.lua
cd tests; $(LUA) $(PKGPATH) -lluacov testhttps.lua
cd tests; luacov src/copas
cd tests; cat luacov.report.out

clean:
3 changes: 3 additions & 0 deletions README.md
@@ -1,5 +1,8 @@
# Copas 2.0

[![Build Status](https://travis-ci.org/keplerproject/copas.png?branch=master)](https://travis-ci.org/keplerproject/copas)
[![Coverage Status](https://coveralls.io/repos/keplerproject/copas/badge.svg?branch=master&service=github)](https://coveralls.io/github/keplerproject/copas?branch=master)

Copas is a dispatcher based on coroutines that can be used for asynchronous networking. For example TCP or UDP based servers. But it also features timers and client support for http(s), ftp and smtp requests.

It uses [LuaSocket](https://github.com/diegonehab/luasocket) as the interface with the TCP/IP stack and [LuaSec](https://github.com/brunoos/luasec) for ssl support.
Expand Down