Generic build tool.
Project description
hmd-cli-build
Generic build tool for NeuronSphere compliant projects.
Declaring Build Steps
A NeuronSphere Project declares which HMD CLI commands are required to build it in the ./meta-data/manifest.json
file.
The package hmd-cli-build
installs a general build command, hmd build
that handles calling each required command in order.
The hmd build
command reads the ./meta-data/manifest.json
, and attempts to run the HMD tools
listed in the build.commands
section.
The tools listed must be installed separately (most are included in the neuronsphere
package).
Example:
{
"name": "example-project",
"build": {
"commands": [["mickey"], ["python"]]
}
}
In the above example, hmd build
will first run hmd mickey build
and then hmd python build
.
If a build command errors or fails, the entire build will exit and fail.
All subsequent commands listed will not be called.
Build commands are run sequentially in the order listed.
It is not possible to run commands in parallel.
Strict Mode
By default, hmd build
runs with HMD_BUILD_STRICT_MODE=true
, or in strict mode.
While in strict mode, the build will error and fail if one of the listed build commands is not installed.
This behavior is desirable on a CI or build server, but not for local development.
You can turn off strict mode by setting HMD_BUILD_STRICT_MODE=false
.
This will be set for you when you run hmd configure
after installing the neuronsphere
package.
When strict mode is disabled, hmd build
will only warn about a missing command and continue on to the next command.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for hmd_cli_build-0.1.53-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4794cddf00a01dd529aa934e87080032a6c9619541250e36068b013c631b9563 |
|
MD5 | d1fc6c6089f9852dd59e2800f071f90b |
|
BLAKE2b-256 | 46a8ebe8328458993c0b3b023ef5f8dd6bbdf56f709e8f4cba1dab09fa2d2f31 |