Coxbuild is a tiny python-script-based build automation tool, an alternative to make, psake and so on.
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://
- File
Extensions:
- Python
- Shell
- Git
- Node.js
- .NET
- Gradle
pip install coxbuild
# 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
Coxbuild build itself by itself, see here for details.
- Write Schema (buildcox.py)
@task
def pre():
print("pre task")
@depend(pre)
@task
def default():
pass
- Run
coxbuild
# or a shortcut
cb
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.