npm Install
npm test
gulp test
ionic serve
Install Latest Jenkins.
- Git Plugin
- GitHub Plugin
- Github Pull Request Builder Plugin ( Managing Pull Requests )
- Github API plugin
- Cobertura Plugin ( Unit test passed rate and Code coverage )
- Checkstyle Plugin
Here the workflow we are trying to achieve:
- Users creates a branch from dev or sub branches of dev (e.g. feature-1, feature-1-bugfix ) during development.
- After completing his development work and pushing his changes to Github & the user creates a pull request.
- In order to approve a pull request we require a. Successfully pass all lint rules. b. Successful build c. 100% Unit test pass rate. 4. 100% Code coverage
- The source of the pull request shall be automatically closed if any the above mentioned condition is not met.
- The source of the pull request shall be marked ready all checks are passed if condition is met and is ready to be merge by reviewer.
- When a pull request is created/updated Jenkins shall be triggered automatically for real continuous integration using GitHub Hooks
- Only if the build was successful, the pull request shall be approved and merged.
.