Skip to main content

MiniCI

A small tool to make the life of programmers easier

When programming especially small applications iteratively, the overead of e.g., compiling and executing the application again and again can be very annoying. MiniCI is intended to ease the life of a developer in such situations. Setup your MiniCI configuration as a yaml file and execute minici with that configuration file. MiniCI will watch your configured files and automatically act upon file changes. This way, e.g., a compiler can be automatically started as soon as you safe your source with a shortcut and the updated executable is executed when the compilation finishes without errors (example configuration for this can be found [here]).

Installation and Usage

Clone this repository and use pip to install the executable.

pip3 install minici

Create a configuration file for minici

#minici-config.yml
observers:
    - files:
        - helloworld.cpp
      on_modify_triggers:
        - compile_helloworld

    - file: helloworld2.cpp
      on_modify_trigger: compile_helloworld2

processes:
    - trigger_signals:
        - compile_helloworld
      command: g++ helloworld.cpp -o helloworld
      on_success_triggers:
        - execute_helloworld

    - trigger_signal: compile_helloworld2
      command: g++ helloworld2.cpp -o helloworld

    - trigger_signals:
        - execute_helloworld
      command: ./helloworld

Finally, simply execute 'minici' with a configuration file as argument.

(The executable might get installed into ~/.local/bin. Install with sudo to install minici system wide)

minici <minici-config.yml>

Future

Updates and Improvements

I created this application to fit my needs, hence I will update it as soon as I found a bug or desire new featues. I am open for any feedback or criticism. If you find a bug or have suggestions, contact me and therefore help improve MiniCI. Feel free to contact me via mail (anthony.zimmermann@protonmail.com) or open an issue if you like.

License

BSD-3-Clause:

Copyright 2021, Anthony Zimmermann

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Release files for minici 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minici 1.0.0
File Size Uploaded
minici-1.0.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minici 1.0.0
File Interpreter ABI Platform
minici-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / minici-1.0.0.tar.gz

Download URL minici-1.0.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
96425d6ae14489af067c207779de26babdd301e7269cacb248d8cd0fd1755bb8
BLAKE2b-256 checksum
How to use checksums
d57fac7327b0abc1cdac440cca413dc98b1501ba03bd356219eb9bbd1cc06bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / minici-1.0.0-py3-none-any.whl

Download URL minici-1.0.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd17b74549d447b2f931d3d21a70d2706a2c4e58180ea4d4453ee27c39270703
BLAKE2b-256 checksum
How to use checksums
3832805f801f28b864631e89387ed85fae8cb6c17972b262b117a8fe340af93c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page