cigit-0.0.3
توضیحات
CI/CD Python Scripting
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cigit-0.0.3 |
| نام | cigit |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | hlop3z <23062270+hlop3z@users.noreply.github.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cigit/ |
| مجوز | - |
# Welcome to **Ci-Git**
**Scripting** build(s) for **C**ontinuous **I**ntegration and **C**ontinuous **D**elivery (**CI/CD**)
## **Installation**
```sh
python -m pip install cigit
```
## **Credentials**
```yaml
# Git Config
url: https://github.com/hlop3z/cigit.git
path: ./demo
# Auth Config
username: hlop3z
password: (P)ersonal-(A)ccess-(T)oken
```
## **Pipeline**
```yaml
# Define Stages
stages:
- build
- test
- deploy
# Define { build } stage jobs
build:
stage: build
script:
- echo "Build"
# Define { test } stage jobs
unit_tests:
stage: test
script:
- echo "Unit-Tests"
integration_tests:
stage: test
script:
- echo "Integration-Tests"
# Define { deploy } stage jobs
deploy_to_staging:
stage: deploy
script:
- echo "Deploy-To-Staging"
deploy_to_production:
stage: deploy
script:
- echo "Deploy-To-Production"
```
## **File** "**`ci-bot.py`**"
```python
import cigit
cigit.cli()
```
---
## **Commands**
---
| Command | Description |
| ----------- | ---------------------------------------------------- |
| **`run`** | **Run** the pipeline |
| **`pull`** | **Git Pull** a remote repository & run the pipeline |
| **`clone`** | **Git Clone** a remote repository & run the pipeline |
---
## **Cheatsheet**
---
### **Clone**
```sh
python ci-bot.py clone
```
### **Pull**
```sh
python ci-bot.py pull
```
### **Run**
```sh
python ci-bot.py run
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pyyaml>=6.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl cigit-0.0.3:
pip install cigit-0.0.3.whl
نصب پکیج tar.gz cigit-0.0.3:
pip install cigit-0.0.3.tar.gz