• Stars
    star
    49
  • Rank 585,874 (Top 12 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

LuaCov reporter for coveralls.io service

luacov-coveralls

Licence

LuaCov reporter for coveralls.io service.

Currently support

Also luacov-coveralls has code which support some other CI but I never test them. If you can test it please do that and send PR.

Install

luarocks install luacov-coveralls

To install current master use this command

luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev

Usage

  • Run tests with enabled LuaCov
  • Run luacov-coveralls

Command line arguments

luacov-coveralls [-h] [-v] [-c FILE] [-j FILE] [-e PAT] [-i PAT]
                 [-r DIR] [-t TOKEN] [-o FILE] [--dryrun]

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print verbose messages
  -c FILE, --config FILE
                        configuration file
  -o FILE, --output FILE
                        output file
  -j FILE, --json FILE  merge report with this json report
  -m, --merge           merge statistics for files with same name
  -r DIR, --root DIR    set the root directory
  -e PAT, --exclude PAT set exclude pattern
  -i PAT, --include PAT set include pattern
  -s NAME, --service-name NAME
                        set `service_name` field explicitly
  -b [+-]VALUE, --build-number [+-]VALUE
                        set/change `service_number` field explicitly
  -t TOKEN, --repo-token TOKEN
                        set the repo_token of this project
  --dryrun              run coveralls without uploading report

Note! --build-number option is experimental.

Basic usage .travis.yml

before_install:
  - sudo luarocks install luacov-coveralls

script:
  - lua -lluacov test.lua

after_success:
  - luacov-coveralls

Advanced usage .travis.yml

If you're using a containerized version of luacov-coveralls you must repass all the required environment variables, here's a simple example:

.travis.yml

language: lua

services:
  - docker
dist: trusty

env:
  COMPOSE_VERSION: 18.06

install: docker-compose build test

script: docker-compose run --rm test

after_success: docker-compose run --rm coverage

after_script: docker-compose down

docker-compose.yml

version: '2.1'

services:
  test:
    command: busted -c
    environment:
      - TRAVIS=true
      - CI=true
      - COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
      - TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
      - TRAVIS_BRANCH=${TRAVIS_BRANCH}
      - TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
    build:
      context: .
      dockerfile: Dockerfile.test
    volumes:
      - ".:/lua/"
    working_dir: "/lua"

  coverage:
    command: luacov-coveralls -v
    environment:
      - TRAVIS=true
      - CI=true
      - COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
      - TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
      - TRAVIS_BRANCH=${TRAVIS_BRANCH}
      - TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
    build:
      context: .
      dockerfile: Dockerfile.test
    volumes:
      - ".:/lua/"
    working_dir: "/lua"

Test Lua module written on Lua and C using cpp-coveralls

before_install:
  - sudo pip install cpp-coveralls
  - sudo luarocks install luacov-coveralls

script:
  - lua -lluacov test.lua

after_success:
  - coveralls --dump c.report.json
  - luacov-coveralls -j c.report.json

See lua-travis-example

More Repositories

1

lua-log

Asynchronous logging library for Lua
Lua
109
star
2

lua-path

File system path manipulation library
Lua
77
star
3

lua-llthreads2

`llthreads` library rewritten without `LuaNativeObjects` code generator
Lua
75
star
4

lua-lluv

Lua binding to libuv
C
67
star
5

lua-travis-example

For experiments with travis-ci
Shell
54
star
6

lua-sendmail

Simple wrapper around luasoket smtp.send
CMake
30
star
7

lua-windows-environment

Windows Lua binaries with LuaRocks and some external dependencies
C
29
star
8

lua-vararg

Library for manipulation of variable arguements of functions
Lua
25
star
9

lua-lluv-curl

Make asyncronus requests using libuv and libcurl
Lua
20
star
10

lua-lluv-websocket

Websocket for lluv library
Lua
19
star
11

lua-odbc

ODBC Library for lua
C
19
star
12

lua-AesFileEncrypt

A simple file encryption library
C
18
star
13

ZipWriter

Library for creating ZIP archive for Lua
Lua
18
star
14

vscode-mobdebug

MobDebug Debug Adapter for Visual Studio Code
Lua
17
star
15

lua-socket-async

Asyncronus wrapper around LuaSocket library
Lua
17
star
16

lua-pop3

POP3 client library for Lua
Lua
15
star
17

lua-spylog

Execute actions based on log records
Lua
14
star
18

lua-split

Implement functions to split strings
Lua
14
star
19

lzmq-zguide

Examples from ZeroMQ Guide
Lua
13
star
20

lua-lluv-gsmmodem

Control GSM modem connected to serial port using AT commands
Lua
13
star
21

lua-sqlite3

fork from http://www.nessie.de/mroth/lua-sqlite3/index.html
Lua
11
star
22

lua-voip

Lua
9
star
23

lua-lluv-pegasus

Simple server based on pegasus.lua library
Lua
9
star
24

lua-winreg

Lua binary module to Access Microsoft(R) Windows(R) Registry
C
8
star
25

lua-EventEmitter

Implement EventEmitter on Lua
Lua
8
star
26

lua-lluv-rs232

Serial port communication library for lluv library
Lua
8
star
27

lua-pegasus-router

Router plugin for Pegasus server
Lua
8
star
28

lua-tpdu

SMS TPDU encoder/decoder
Lua
7
star
29

lua-environ

Manipulate with environment variables
Lua
7
star
30

NginxWinService

Service wrappers for `nginx` and `php-cgi` for Windows
Lua
7
star
31

lua-lluv-ssl

SSL/TLS sockets for lluv library
Lua
6
star
32

lua-lluv-ftp

FTP client for lluv library
Lua
6
star
33

lua-ftp

Simple wrapper around LuaSocket ftp
Lua
6
star
34

lua-null

Provide special value `null` for Lua
C
6
star
35

zbs-package

Packages for ZeroBraneStudio
Lua
6
star
36

lua-MultiRequests

Make multiple requests from different coroutines in parallel
Lua
5
star
37

lua-Parallel

Lua
5
star
38

lua-lluv-esl

FreeSWITCH ESL implementation for lluv library
Lua
5
star
39

lua-lluv-redis

Redis client for lua-lluv library
Lua
5
star
40

luasqlite3

fork from http://lua.sqlite.org
C
5
star
41

lua-lluv-pg

PostgreSQL client based on lluv library
Lua
5
star
42

lua-lzmq-zmq

Wrapper around lzmq library to be compatiable with lua-zmq library
Lua
4
star
43

lua-pdh

Lua binding to Microsoft Performance Data Helper (PDH) library.
C
4
star
44

lzmq-pool

ZMQ socket pool
Lua
4
star
45

lua-pegasus-websocket

WebSocket plugin for Pegasus http server
Lua
4
star
46

lzmq-auth

Implementaion of czmq zauth class
Lua
4
star
47

lua-try

Simple exception support based on LuaSocket
Lua
4
star
48

lua-bgcrypto-sha

C
4
star
49

lua-luq

Light userdata queue
CMake
4
star
50

lua-prefix_tree

Lua
4
star
51

lua-websockets-permessage-deflate

Implement permessage-deflate extension
Lua
3
star
52

lua-OpenHardwareMonitor

Access to OpenHardwareMonitor WMI interface
Lua
3
star
53

lua-lluv-poll-zmq

ZMQ poller for lluv library
Lua
3
star
54

lua-WindowsFirewall

Windows Firewall configuration library
Lua
3
star
55

libmemcached-win32

Fork of https://code.launchpad.net/~mattn/libmemcached/libmemcached-win32
C
3
star
56

lua-avro

Lua
3
star
57

lua-lluv-memcached

Memcached client for lua-lluv library
Lua
3
star
58

lua-lluv-qless

Lua binding for qless - queue / pipeline management system
Lua
3
star
59

luarocks-external

External deps to be able install some binary rocks on Windows.
C
2
star
60

lua-gntp

Implementation of Growl Notify Transport Protocol (GNTP) for Lua
Lua
2
star
61

lua-odbc-pool

ODBC connections pool
Lua
2
star
62

lzmq-monitor

Implementaion of czmq zsock_monitor class
Lua
2
star
63

lbase64

Unofficial repositary of lbase64
Shell
2
star
64

lua-bgcrypto-aes

C
2
star
65

lakefiles

my lakefile for some projects
Lua
1
star
66

moteus.github.com

HTML
1
star
67

lua-lluv-busted

Support async tests for busted with lluv library
Lua
1
star
68

lua-env

Lua library to manipulate environment variables
Lua
1
star
69

lua-odbc-dbi

ODBC Driver for Lua-DBI library
Lua
1
star
70

fusionpbx-app-messenger

Application for FusionPBX to send/receive SMS messages
PHP
1
star
71

lua-websockets-extensions

WebSocket extensions manager
Lua
1
star
72

mod_h323_deps

Build deps for FreeSWITCH mod_h323 on Windows
C++
1
star