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

Add CI with code coverage using Travis CI and Codecov #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .luacov
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
modules = {
["serpent"] = "src/serpent.lua"
}
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 codecov
- pip install hererocks
- hererocks lua_install --$LUA -r latest
- source lua_install/bin/activate
- luarocks install cluacov

install:
- luarocks make

script:
- lua -lluacov t/test.lua

after_script:
- luacov
- codecov -X gcov
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Serpent

[![Build Status](https://travis-ci.org/pkulchenko/serpent.svg?branch=master)](https://travis-ci.org/pkulchenko/serpent)
[![Coverage status](https://codecov.io/gh/pkulchenko/serpent/branch/master/graph/badge.svg)](https://codecov.io/gh/pkulchenko/serpent)

Lua serializer and pretty printer.

## Features