CI generator is a tool to generate CI configuration files for your project. It's a command line tool that can be used to generate CI configuration files for your project. It's written in Python and uses templates to generate the files.
Possible CI systems are:
- GitHub Actions
- Jenkins
- Docker
- Gitlab CI
They can integrate with the following tools:
- SonarQube
- SonarCloud
- Test coverage
- DockerFile
- DockerCompose
Multiplatform Linux, Windows, MacOs
pip install ci-generatorcigen --helpcigen github-actions --helpoutput:
Usage: cigen [OPTIONS] COMMAND [ARGS]...
ciGen is a Continuous Integration Generator
Options:
--help Show this message and exit.
Commands:
docker This is the main command for the Docker
github-action This is the main command for the GitHub Actions
gitlab This is the main command for the GitLab
jenkins This is the main command for the Jenkins
[EXEMPLES OF USAGE] <- click here
github-actions subcommand can be used to generate Build and Test Github Actions configuration files.
github-actions Golang example:
cigen github-actions go -n myproject -b push main -a 1 -v 1.21.1[EXEMPLES OF USAGE GOLANG] <- click here
github-actions NodeJS example:
cigen github-actions nodejs -n myproject -b push main -a 1 -v 14.17.3[EXEMPLES OF USAGE NODEJS] <- click here
cigen jenkins --helpjenkins subcommand can be used to generate Build and Test Jenkins configuration files.
jenkins Golang example:
cigen jenkins go -n myproject -b push main -a 1 -v 1.21.1jenkins Python example:
cigen jenkins python -n myproject -b push main -a 1 -v 3.9.6cigen docker --helpdocker subcommand can be used to generate Docker configuration files.
docker example:
cigen docker -n dockerfile -i golang -v 1.21.1 -s multicigen gitlab-ci --helpgitlab-ci subcommand can be used to generate Build and Test Gitlab CI configuration files.
gitlab-ci Golang example:
cigen gitlab-ci go -n myproject -b push main -a 1 -v 1.21.1gitlab-ci Python example:
cigen gitlab-ci python -n myproject -b push main -a 1 -v 3.9.6docker build -t ci-generator .docker run -it --rm ci-generator cigen --helpdocker-compose up -ddocker-compose run --rm ci-generator cigen --helppython3 -m venv venvsource venv/bin/activatepip install -r requirements.txtpip install -e .cigen --helpNOTE: ci generator is not yet fully stable, so it's not recommended to use it in production. It's still in development.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
MIT