Hack a GIT change observer in Swift.
I need a small CI system on raspberry implemented in principles of
- KISS (keep it stuped simple),
- MinD (minimize dependency) and
- Microservice (never ever software maintenance but new programming)
first run
- build or take the
git-ci
executable - On Windows create a executable file called
CIdoIt.exe
. - On Linux start
git-ci
executable to let create theCIdoIt.exe
and modifiedCIdoIt.exe
withvi
or other editor.
default run
- start
git-ci
in background
default stop
- create a file
CIstop
w/o extension in running directory ofgit-ci
git-ci
check every 60 seconds the hash of repository and at first time or hash is changed the CIdoIt.exe
program is called. If a file CIstop
are existing in running directory this CI is stopping and delete as last the CIstop
file.
The extension .exe is important with system who must not be named. In result of that it calls an executable CIdoIt.exe
. CIdoIt.exe
can be under systems with executable file attribute a script file. On THE other system who must not be named you need to create a binary executable file.