Crates.io | simpleci |
lib.rs | simpleci |
version | 0.0.4 |
source | src |
created_at | 2024-03-13 20:49:34.719839 |
updated_at | 2024-03-17 09:01:08.219471 |
description | A simple tool to run CICD pipelines locally |
homepage | https://gitlab.com/FrancoisSevestre/simple-ci-rust-edition |
repository | https://gitlab.com/FrancoisSevestre/simple-ci-rust-edition |
max_upload_size | |
id | 1172368 |
size | 50,098 |
:warning: SimpleCI was originaly written in Python. Some features may be missing for now! See python version repo here.
Simple-CI is a CI/CD pipeline executor similar to gitlab CI/CD but in local. It's triggered by a git hook after a commit and executes directives given by user in a simple script named .simple-ci.yml, placed at the root of the directory. The artifacts (logs, compiled binairies, etc) are stored in a folder at the same level that the project folder named [project name]-simple-ci.
Automation pipelines like GitLab CI/CD are great tools for improving software development. However, the syntax can be tidious and the user relies completely on gitlab and it's runners (even though you can create your own runners). Furthermore, installing tools like gitlab or jenkins locally consumes a lot of resources and requires having them running in the background.
Simple-CI/CD solves these issues by providing a dead simple way for the user to run a CI/CD pipeline:
Check the Wiki for more in-depth documentation.
simpleci start
: Create the git hook.simpleci stop
: Delete git hook (The pipeline will not be executed).simpleci init
: Create the git hook and the .simple-ci.yml file.simpleci exec
: Executes the pipeline.simpleci clean
: Remove all artifacts files.variables:
GLOBAL_VAR: "last"
stages:
- stage1
- stage2
stage1:
variables:
MYVAR: "second"
jobs:
- job1
- job2
stage2:
inside_docker:
image: ruby:2.7
path: /tmp/
jobs:
- job3
job1:
variables:
fie_name: "new_file"
artifacts:
paths:
- new_file
script:
- echo "This is the first job."
- touch $file_name
job2:
inside_docker:
image: ubuntu
path: /
script:
- echo "This is the $MYVAR job."
job3:
script:
- echo "This is the $GLOBAL_VAR job, that will be executed after stage1 is completed."
You will find the complete syntax documentation on the Wiki
cargo install simpleci
Feel free to submit any issues is you want to contribute.