Git Product home page Git Product logo

make-ci-server's Introduction

make-server

Make server that runs in background for configured projects and periodically builds them (i.e.: executes make) catching their outputs and exposing them interactively via zmake command.

If your project's build is started earlier in the background, zmake will show and follow its output. If it finished, it'll show its output without blocking of terminal. You can also request last log of given type, i.e.:

  • last successful, non-null build: zmake -c/--clean,
  • last null build (no actions taken by the Makefile/make): zmake -n/--null,
  • last warning-only build: zmake -w/--warn,
  • last error build: zmake -e/--err.

make-server remembers last log output for each o the kinds above.

Log files

make-server outputs messages that are forwarded to two different locations:

  • ~/.cache/makesrv/make.log,
  • {path to the plugin directory}/make.log.

If you run the make-server command manually, the logs go to the standard output.

TL;DR Documentation

  • zmake - tool to interface with the background service,
  • make-server - the background build service.

You can use Zinit's service feature to run exaclty one copy of the build service process (see next section) or run it yourself simply via ./make-server.

A service-plugin (i.e.: the file make.service.zsh) can use a plugin manager that supports loading single plugin instance per all active Zsh sessions, in background. For example, Zinit supports this, add:

zinit lucid service'make' param'MSERV_CONF_DIRS→~/Dokumenty/neo-mc:~/github/tig;
        MSERV_CONF_SETUP_ALIAS→1; MSERV_CONF_INTERVAL→10' for \
            zservices/make-server

to ~/.zshrc to have make-server automatically run in background in one of your zsh sessions, with make aliased to zmake to little help with muscle memory, with 10 seconds between each build.

Explanation of Zsh-spawned services

First Zsh instance that will gain a lock will spawn the service. Other Zsh instances will wait. When you close the initial Zsh session, another Zsh will gain lock and resume the service.

make-ci-server's People

Contributors

psprint avatar

Stargazers

vladislav doster avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.