Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ci-toolkit/pipeline

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ci-toolkit/pipeline

A tool for keeping a continuous delivery pipeline state in a Git repository

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Description

The intention of this suite of commands is to keep the track the progress of CI pipelines inside a Git repository instead of CI servers. In fact, this solution eliminates the necessity of using stateful CI servers at all as each steps of pipelines can be executed by independent, continusously running processes.

How to...

set up a workflow consisting of three CI stages

Process A:

# cloning the repository 
git clone git@github.com:mstream/ci-toolkit.git

# running unit tests
./run-unit-tests.sh

# marking the commit
npx @ci-toolkit/pipeline mark-commit --ci-stage unit-testing --commit-ref $(git rev-parse HEAD)

# push notes
git push origin refs/notes/*

Process B:

# cloning the repository 
git clone git@github.com:mstream/ci-toolkit.git

# checking out the last commit which passed unit tests
git checkout $(npx @ci-toolkit/pipeline get-last --ci-stage unit-testing)

# running functional tests
./run-functional-tests.sh

# marking the commit
npx @ci-toolkit/pipeline mark-commit --ci-stage functional-testing --commit-ref $(git rev-parse HEAD)

# push notes
git push origin refs/notes/*

Process C:

# cloning the repository 
git clone git@github.com:mstream/ci-toolkit.git

# checking out the last commit which passed both unit tests and functional tests
git checkout $(npx @ci-toolkit/pipeline get-last --ci-stage unit-testing --ci-stage functional-testing)

# running functional tests
./run-integration-tests.sh

# marking the commit
npx @ci-toolkit/pipeline mark-commit --ci-stage integration-testing --commit-ref $(git rev-parse HEAD)

# push notes
git push origin refs/notes/*

Commands

  • get-last
  • mark-commit

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc