Skip to content

StardustDL/coxbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads

Coxbuild is a tiny python-script-based build automation tool, an alternative to make, psake and so on.

Documents

References

Test Coverage Report

Extension Gallery

Supported features:

  • Task
  • Dependency
  • Pre / Post condition
  • Lifecycle hooks
    • Setup / Teardown
    • Before / After
  • Event-based build as a long-run service
  • Multiple schema sources
    • File file://
    • Url url://
    • Source code src://
    • Module mod://
    • Gallery ext://

Extensions:

  • Python
  • Shell
  • Git
  • Node.js
  • .NET
  • Gradle

Install

pip install coxbuild

Try

# Version

coxbuild --version

# Hello World

cb -u https://raw.githubusercontent.com/StardustDL/coxbuild/master/demo/hello.py

cb -e hello

# Life Cycle

cb -u https://cdn.jsdelivr.net/gh/StardustDL/coxbuild@master/demo/lifecycle.py

# Event-based build

cb -u https://cdn.jsdelivr.net/gh/StardustDL/coxbuild@master/demo/event.py

# Interactive

cb -i src://interative

Getting Started

Coxbuild build itself by itself, see here for details.

  1. Write Schema (buildcox.py)
@task
def pre():
    print("pre task")

@depend(pre)
@task
def default():
    pass
  1. Run
coxbuild

# or a shortcut

cb

Extensions

We provide a few extensions with coxbuild release package, in coxbuild.extensions module. We also provide a gallery of extensions in exts.

Visit here for more details.

About

Coxbuild is a tiny python-script-based build automation tool, an alternative to make, psake and so on.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published