Continuous Integration Pipeline for StackStorm packs
To add testing capabilities to your StackStorm pack simply:
git clone https://github.com/EncoreTechnologies/ci-stackstorm.git
cp ci-stackstorm/pack/Makefile /path/to/my/stackstorm/pack/
cd /path/to/my/stackstorm/pack/
makeThis repo provides testing in the form of a Makefile.
The Makefile does all of the following when you run the make command:
- Cloning this repo into the
ci/folder within your pack - Creating a virtualenv in
ci/virtualenv(note:virtualenvmust be installed) - The virtualenv automatically installs all modules in
requirements.txt,requirements-dev.txt, andrequirements-pack-tests.txt. - Clones the StackStorm repo into
/tmp/st2 - Executes commands from the StackStorm repo to validate YAML and JSON files along with execute unit tests
To get a list of available make targets run: make list
To clean up all of the data used by this CI system, simply run make clean