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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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