From 8316dc897fa965b6a3126c68c2846160982ebbb3 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Sat, 17 Mar 2018 13:41:51 +0300 Subject: [PATCH] Update CI script, switch to codecov for coverage uploads --- .travis.yml | 15 ++++++++------- README.md | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 952f5ea..6d5191e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,15 @@ env: - LUA="lua 5.2" - LUA="lua 5.3" - LUA="luajit 2.0" + - LUA="luajit 2.1" before_install: - pip install hererocks - - hererocks l -r^ --$LUA - - export PATH=$PATH:$PWD/l/bin - - luarocks install luacheck - - luarocks install dkjson --deps-mode=none + - hererocks lua_install --$LUA -r latest + - source lua_install/bin/activate - luarocks install busted - - luarocks install luacov-coveralls + - luarocks install cluacov + - luarocks install luacheck install: - luarocks make @@ -23,5 +23,6 @@ script: - luacheck src spec - busted -c -after_success: - - luacov-coveralls +after_script: + - luacov + - codecov -X gcov diff --git a/README.md b/README.md index f3c9f07..83c0481 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # argparse [![Build Status](https://travis-ci.org/mpeterv/argparse.png?branch=master)](https://travis-ci.org/mpeterv/argparse) -[![Coverage Status](https://coveralls.io/repos/mpeterv/argparse/badge.svg?branch=master&service=github)](https://coveralls.io/github/mpeterv/argparse?branch=master) +[![Coverage Status](https://coveralls.io/repos/mpeterv/argparse/badge.svg?branch=master)](https://coveralls.io/r/mpeterv/argparse?branch=master) Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.