Skip to main content

ci generator

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

Installation

Multiplatform Linux, Windows, MacOs

pip install ci-generator

Usage

cigen --help

Github Actions

cigen github-actions --help

output:

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

github-actions subcommand can be used to generate Build and Test Github Actions configuration files.

Github Actions commands available

  • go

github-actions Golang example:

cigen github-actions go -n myproject -b push main -a 1 -v 1.21.1

github-actions Python example:

cigen github-actions python -n myproject -b push main -a 1 -v 3.9.6

Commands not yet available

Jenkins

cigen jenkins --help

jenkins 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.1

jenkins Python example:

cigen jenkins python -n myproject -b push main -a 1 -v 3.9.6

Docker

cigen docker --help

docker subcommand can be used to generate Docker configuration files.

docker example:

cigen docker -n dockerfile -i golang -v 1.21.1 -s multi

Gitlab CI

cigen gitlab-ci --help

gitlab-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.1

gitlab-ci Python example:

cigen gitlab-ci python -n myproject -b push main -a 1 -v 3.9.6


NOTE: ci generator is not yet fully stable, so it's not recommended to use it in production. It's still in development.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Metadata

Release files for ci-generator 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ci-generator 0.2.0
File Size Uploaded Provenance Actions
ci-generator-0.2.0.tar.gz 13.2 kB Without provenance Details for ci-generator-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ci-generator 0.2.0
File Interpreter ABI Platform Actions
ci_generator-0.2.0-py3-none-any.whl Python 3 none any Details for ci_generator-0.2.0-py3-none-any.whl

Total release size: 34.5 kB

Release files / ci-generator-0.2.0.tar.gz

Download URL ci-generator-0.2.0.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f53be76f7ff837c5677dd19a4e0a9b812dbb5099b2abd8975bb9d70417f89643
BLAKE2b-256 checksum
How to use checksums
e9e3c10c148f29ba265e55050dd44c0288b303cea3c9ff3eb49178ebee1bbae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / ci_generator-0.2.0-py3-none-any.whl

Download URL ci_generator-0.2.0-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
749fcc848b55b9816b9056453dfc2b495255dbcb5f4b98479a28d59cf81e645f
BLAKE2b-256 checksum
How to use checksums
a1a180f38e78906e1d673aa08d75cf0eb5a5ee83889eeb61beb7b9694f88f1ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for ci-generator 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page