Hello everyone,
Ilario and I finally finished to have everything configured to have
continuous integration for the lime-packages repository.
https://github.com/libremesh/lime-packages/pull/186
Continuous Integration (CI) is the practice of having tests done on
every branch that is going to become part of your master branch, in
order to fulfill a certain level of quality.
The current stake on doing CI runs a build on all the repo and verifies
that it runs successfully.
So, if you have any tests on your code (hint: nothing there for the
moment) it will be run with your build and fail if something changed
that broke the code.
Also, the CI will publish the resulting images from the build as a
comment on the Pull Request to facilitate the testing... no more need
to build locally to test the branch. Just download the image, run it on
qemu and test. That way we reduce preparation time for testing from 30+
minutes to 5 minutes or less.
if you are interested in adding tests to the code, I've written a
blogpost on freifunk blog about talking about lua and testing (one of
the languages we use on LibreMesh):
https://blog.freifunk.net/2017/06/29/tdd-unit-testing-lua-openwrtlede-c
ase/
If you want to check past previous executions, you can check them here:
https://travis-ci.org/libremesh/lime-packages
Also we have a badge that indicates the health of the branch on the
README:
https://github.com/libremesh/lime-packages/blob/develop/README.md
Hope this helps people get more involved on coding for LibreMesh!
Regards,