https://github.com/salaah01/gen-unit-tester
A generic to help build a project, test and move onto a staging area.
https://github.com/salaah01/gen-unit-tester
Last synced: 7 months ago
JSON representation
A generic to help build a project, test and move onto a staging area.
- Host: GitHub
- URL: https://github.com/salaah01/gen-unit-tester
- Owner: Salaah01
- Created: 2021-03-12T22:56:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-16T01:08:48.000Z (over 4 years ago)
- Last Synced: 2025-01-06T21:49:07.942Z (9 months ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generic CI/CD (In Progress)
A generic to help build a project, test and move onto a staging area.
The tool will do the following by default:1. Clone your repository (you would need to configure the access).
2. Run a set up of pre-test commands. Examples of this include:
* `pip install -r requirements.txt`.
* `npm install`
* `npm run build`
3. Runs your unit tests and fails the build if any of the tests fail.
4. Checks out your staging branch or any other branch you define and merges the feature branch.## Use Cases
This can be used, an fact is inspired by GitHub's dependabot. To help manage
the number of pull requests it was creating, I created a Jenkins job that would
rebuild my application and follow the stages mentioned about with each changes
suggested by dependabot. If everything passed, the branch would be merged into
my `dependenciesUpdate` branch on which I would run separate tests before
promoting to production.# Setup
1. (Optional) Modify `docker-compose.yml` to add any other packages you many want to install.