Coder Social home page Coder Social logo

master's Introduction

master

A master builder.

master

Concepts

master

master provides a uniform interface to building projects.

master is a configuration file definition for defining builds and referencing a runner.

master is a command line interface for building a project, reading the master configuration, grabbing the runner, setting up the build environment, and then executing the runner with the environment.

runners

Any executable. It accepts no arguments, but has access to environment variables for this build.

builds

Basically a build is a name, and a collection of environment variables for the build.

master.toml configuration

A complete example:

[master]
   version = 1
   runner = "s3://ambiata-dist/master-haskell/$OS/$ARCH/master-haskell-ab12f1"
   sha1 = "abc123def"

[global]
   PUBLISH_BUCKET = "ambiata-dist"

[build.master]
   PUBLISH = "true"
   HADDOCK = "true"

[build.branches]
   PUBLISH = "false"

   [build.branches.master]
      runner = "s3://ambiata-dist/master-haskell/$OS/$ARCH/haskell-cabal-ab12f1"
      sha1 = "abc123def"

The version attribute is mandatory. It is to allow non-backwards compatible changes to the format without breaking older projects.

The runner attribute is mandatory, either at the top-level or on each build level. The runner can still be overridden by a build even if specified at the top level. It is able to exploit the $OS and $ARCH variables for platform specific requests.

The sha1 is to specify the sha1 of the runner. It is optional but really should be set. If this is set, master will cache your runner, if it is not set your colleagues will probably not like you.

The global variables section is optional, and globals can be overridden locally in each build subsection.

Each build.* sub-section, defines a build name * and specifies a series of environment variables. Each subkey to be passed to the runner must be a string in capitals.

Implementation

The first cut should be extremely basic. It should:

  • parse the config.
  • download the runner.
  • check the sha.
  • execute the runner with the environment variables for the specific build set.

master's People

Contributors

nhibberd avatar charleso avatar thumphries avatar jacobstanley avatar markhibberd avatar etorreborre avatar olorin avatar

Watchers

 avatar James Cloos 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.