No description or website provided.
Shell Lua
Permalink
Failed to load latest commit information.
.travis Initial commit Jul 30, 2015
awesome Initial commit Jul 30, 2015
.luacov Initial commit Jul 30, 2015
.travis.yml Update .travis.yml Feb 21, 2016
README.md Update README.md Aug 26, 2016
awesome-tests.lua Add call to done Jul 30, 2015

README.md

Codecov Lua Example travisCI codecov.io

https://codecov.io @codecov hello@codecov.io

This repository serves as an example of how to use the Codecov global uploader with Lua.

Note that the coverage is deliberately incomplete. (I swear by Kent Beck!) That way you can follow the badge link and see how Codecov works. You can view the code there, see hits and misses for coverage, etc.

Basic Usage

Run your tests with LuaCov in order to create the necessary coverage reports. For example:

lua -lluacov awesome-tests.lua

After you've run the tests and created a LuaCov report, you can use the Codecov global uploader to push that report to Codecov. See below for further details.

travis-org Travis CI

Public Repos

Adjust the example in lua-travis-example to install any necessary dependencies and test with multiple versions of Lua (if desired).

Then simply add this to .travis.yml:

after_success:
  - bash <(curl -s https://codecov.io/bash)

Private Repos

Add to your .travis.yml file.

env:
  global:
    - CODECOV_TOKEN=:uuid-repo-token

after_success:
  - bash <(curl -s https://codecov.io/bash)

Other CI services

  • Adjust the materials in lua-travis-example as necessary to work with your CI. (See for example: this post for an example using Drone.io.)
  • Add CODECOV_TOKEN=<your repo token> to your CI's environment variables. (Don't store the raw token in your repo.)
  • Run bash <(curl -s https://codecov.io/bash) after tests complete.

More details

Visit the global uploader's repo to view its source and learn more about the script.