https://github.com/rizo/git-ci
Simple Git CI plugin for automated builds, as Unixy as it can get.
https://github.com/rizo/git-ci
Last synced: 3 months ago
JSON representation
Simple Git CI plugin for automated builds, as Unixy as it can get.
- Host: GitHub
- URL: https://github.com/rizo/git-ci
- Owner: rizo
- Created: 2016-05-03T22:25:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T19:27:14.000Z (about 9 years ago)
- Last Synced: 2025-03-19T22:08:13.062Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git CI
> Simple Git CI plugin for automated builds, as Unixy as it can get.
The build process is directly integrated with the git's ability to add action hooks. In particular by running `git ci enable` a `post-receive` hook is enabled in your current repository, which will run by git whenever some clone pushes to the remote. The actual build process is delegated to `make`, the `make ci` action is invoked every time the hook is fired.
**TL;DR**: Run `git ci enable` and add whatever you want to the `make ci` action and it will work.
During the execution all the output is saved in `log/` directory.
The entire work is done in 99 LOC of shell code for the git plugin and the `post-receive` hook!
## Installation
Get the `git-ci` and install it somewhere in your `$PATH` with execution permissions.
```bash
$ curl -L https://raw.githubusercontent.com/rizo/git-ci/master/git-ci > /usr/local/bin/git-ci
$ chmod +x /usr/local/bin/git-ci
```## Instructions
1. Go to the remote repository which you want to use for builds.
2. Add the `ci` action in the Makefile with your build process.
2. Run `git ci enable` to setup your repository as bare and ready for builds.
5. Push the changes to the remote repository and check the logs in `./log/git-ci`.