Git Product home page Git Product logo

baka's Introduction

Baka

Python tool and library for continuous, clean builds. Baka was primarily designed to be used in combination with Snapcraft.

Dependencies

  • Python >= 3.5
    • with all modules listed as install_requires in setup.py
  • One of the following backends:

Install

cd baka/
python3 setup.py install

Usage

Note: Baka is work in progress. API and supported features are subject to change without notice.

Create a baka.yml file.

name: test-project
summary: Test project
description: A test project
environment:
  scripts:  # Use Python scripts to setup the build environment
    setup: |
      baka = require('baka', '0.1.0')
      print("setup")
      # Execute commands inside the build container
      baka.box.run("touch", "/home/baka/environment_setup")
jobs:
  - name: my-job
    extends: base  # You can use pre-defined jobs (e.g. snapcraft)
    source: .
    scripts:
      setup: |  # Run optional scripts for all build steps
        print("setup")
      perform: |
        baka = require('baka', '0.1.0')
        print("perform")
        baka.box.run("touch", "/home/baka/job_perform")
      finish: |
        baka = require('baka', '0.1.0')
        print("finish")
        baka.box.run("touch", "/home/baka/job_finish")

Use the baka tool to run all jobs

cd my-project/
baka   # See baka --help

License

Licensed under the terms of the MIT license.

baka's People

Contributors

timsueberkrueb avatar

Watchers

 avatar  avatar  avatar

baka's Issues

Proper environment variable expansion

Right now, baka uses a fake environment to expand environment variables.
The proper solution would be to use the actual container environment to expand environment variables.

Deduplicate _ExecGenerator

_ExecGenerator is defined in both docker and lxc backends. A base class for both should be created in order to deduplicate code.

Better tests

Right now, tests contains a mix up of unit and integration tests both using the python unittest library.
Separate them, evaluate options for integration tests and create missing test cases.

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.