0.4.0 • Published 2 years ago

@ci-toolkit/pipeline v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.2.16

2 years ago

0.2.15

2 years ago

0.2.13

2 years ago

0.2.23

2 years ago

0.2.12

2 years ago

0.2.22

2 years ago

0.2.11

2 years ago

0.2.21

2 years ago

0.2.10

2 years ago

0.2.20

2 years ago

0.3.0

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.4.0

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.13

3 years ago