Hello everyone,
so here is the trick how to get the tests run for an individual component
on https://github.com/zetacomponents
Note: This only works with packages that depend only on unit-test and base.
See the following diff for necessary changes:
https://github.com/zetacomponents/Workflow/compare/4dd9e041bd...caf1238926
1. Add require and require-dev keys to composer.json
2. Add a tests/bootstrap.php - which will be called from phpunit. It
autoloads all classes
3. add a phpunit.xml.dist - This will lead to calling "phpunit" to
automatically know and execute the configured tests in the xml
4. Call "composer install --dev" to install the dependencies into vendor/
directory
5. .gitignore the temporary files and the vendor files (can be rebuild
using composer automatically)
6. Try "phpunit" and start fixing tests
7. Push to repository
8. Go into Github Projects Admin Tab, Service Hooks, Travis - Activate
Travis hook for continous integration.
Question: I can automate bullets 1-5 for all repositories, is that desired?
Then maintainers of components only need to get the tests run and hook into
travis.
greetings,
Benjamin
Received on Thu Apr 26 2012 - 08:51:03 BST
This archive was generated by hypermail 2.2.0 : Sun Nov 12 2017 - 19:36:13 GMT