akai / magento2-travis-ci-scripts
Magento 2 Travis CI helper scripts
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Language:Shell
This package is auto-updated.
Last update: 2024-11-14 05:10:30 UTC
README
The purpose of this package is to provide a simple, clean and time saving way
to create Travis CI configuration file (.travis.yml
) for Magento 2 modules.
What is continuous integration (CI)?
Continuous integration is the practice of merging all developer
working copies to a shared mainline several times a day,
in order to prevent integration problems.
(Click here to know more about continuous integration)
What is Travis CI?
Travis CI is a hosted, distributed continuous integration service
used to build and test software projects hosted at GitHub.
(Click here to know more about Travis CI)
(For documentation, click here)
How to use?
- Use the provided configuration distribution file (
.travis.yml.dist
) in this package,
to create your own configuration file. - In configuration file set your vendor (
VENDOR_NAME
) and module (MODULE_NAME
) names. - You could add your own test scripts under
script
step. - Or, in order to keep things clean and organized, you could put your test scripts inside your module,
and call them with one command from configuration file.
(e.g../${MAGENTO_DIR}/${MODULE_DEPLOY_PATH}/dev/travis_ci/script.sh
)
Covered tests
Tests that are already included in the scripts.
- PHP_CodeSniffer (PHPCS). (Uses Magento EQP rules and sniffs)
- PHP Mess Detector (PHPMD).
- PHP Copy/Paste Detector (PHPCPD).