Skip to main content

CI/CD Python Scripting

Project description

Welcome to Ci-Git

Scripting build(s) for Continuous Integration and Continuous Delivery (CI/CD)

Installation

python -m pip install cigit

Credentials

# Git Config
url: https://github.com/hlop3z/cigit.git
path: ./demo

# Auth Config
username: hlop3z
password: (P)ersonal-(A)ccess-(T)oken

Pipeline

# 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"

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

python ci-bot.py clone

Pull

python ci-bot.py pull

Run

python ci-bot.py run

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cigit-0.0.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

cigit-0.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cigit-0.0.3.tar.gz.

File metadata

  • Download URL: cigit-0.0.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for cigit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6c089dea3192a9a13bd48f3db63a70cf8401a135a3ae1e5085838636dc45111a
MD5 1e74ceb7c540f699f60d337055080622
BLAKE2b-256 e0de56e62630760e0dd2d3ef8210ef8367005009fbb60ba0ebb7f8f4d887fe4b

See more details on using hashes here.

File details

Details for the file cigit-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cigit-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for cigit-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f1f9247d0be72dbd858a862e7c8ff39d8ad442a92bf41eafdf2e50470aa3218
MD5 0e6d3aeb8599db815d07933bf4622ba1
BLAKE2b-256 c94584713f12dd4b2083ce27f8798e0d8af96c2cc06911f447996263d121f267

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page