werk
所属分类:collect
开发工具:Crystal
文件大小:0KB
下载次数:0
上传日期:2022-04-01 11:25:55
上 传 者:
sh-1993
说明: 死简单任务运行器,
(Dead simple task runner,)
文件列表:
.editorconfig (150, 2023-12-18)
CONTRIBUTING.md (283, 2023-12-18)
Dockerfile (369, 2023-12-18)
LICENSE (1083, 2023-12-18)
examples/ (0, 2023-12-18)
examples/01_hello.yml (134, 2023-12-18)
examples/02_perl.yml (339, 2023-12-18)
examples/03_crystal.yml (449, 2023-12-18)
examples/04_silent.yml (216, 2023-12-18)
examples/10_parallel.yml (855, 2023-12-18)
examples/99_docker.yaml (1568, 2023-12-18)
shard.lock (393, 2023-12-18)
shard.yml (339, 2023-12-18)
spec/ (0, 2023-12-18)
spec/colors_spec.cr (264, 2023-12-18)
spec/config_spec.cr (1098, 2023-12-18)
spec/graph_spec.cr (954, 2023-12-18)
spec/spec_helper.cr (40, 2023-12-18)
src/ (0, 2023-12-18)
src/werk.cr (293, 2023-12-18)
src/werk/ (0, 2023-12-18)
src/werk/application.cr (401, 2023-12-18)
src/werk/commands/ (0, 2023-12-18)
src/werk/commands/plan.cr (1516, 2023-12-18)
src/werk/commands/run.cr (3933, 2023-12-18)
src/werk/config.cr (2768, 2023-12-18)
src/werk/jobs/ (0, 2023-12-18)
src/werk/jobs/docker.cr (3368, 2023-12-18)
src/werk/jobs/local.cr (802, 2023-12-18)
src/werk/report.cr (1137, 2023-12-18)
src/werk/scheduler.cr (3908, 2023-12-18)
src/werk/utils/ (0, 2023-12-18)
src/werk/utils/colors.cr (854, 2023-12-18)
src/werk/utils/graph.cr (1685, 2023-12-18)
... ...
# werk
Dead simple task runner. Now with support for Docker.
## Build status
[![CI Status](https://github.com/marghidanu/werk/workflows/CI/badge.svg)](https://github.com/marghidanu/werk/actions)
## Installation
You can follow the installation guide available [here](https://github.com/marghidanu/werk/wiki/Installation).
## Documentation
For more information on how to get started, please check the [wiki](https://github.com/marghidanu/werk/wiki/Guide).
## Features
- [x] Automatic determination of the execution plan
- [x] Parallel jobs execution
- [x] Shell executor
- [x] Docker executor
- [x] Real-time output support for parallel jobs
- [x] Simple configuration DSL based on YAML
- [x] Execution report
- [ ] Web UI for browsing the execution reports (?)
- [x] Enable logging
## Example
Create a **werk.yml** with the following content:
```yaml
version: "1"
description: "Manage Werk with Werk"
jobs:
main:
description: "Build application"
executor: local
commands:
- shards build
needs:
- lint
- test
lint:
description: "Lint code"
executor: docker
image: veelenga/ameba
commands:
- ameba
can_fail: true
test:
description: "Test code"
executor: local
commands:
- crystal spec
docs:
description: Generate API documentation
executor: local
commands:
- crystal docs
- open docs/index.html
silent: true
```
after that, you can run
```
werk run
```
You can also start individual jobs by specifying a target like this:
```
werk run lint
```
Here's another example; in this case, I'm building Werk using itself.
[![asciicast](https://asciinema.org/a/ssMl6y1R2RcaDgfTHj5uJejzH.svg)](https://asciinema.org/a/ssMl6y1R2RcaDgfTHj5uJejzH)
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Tudor Marghidanu](https://github.com/marghidanu) - creator and maintainer
近期下载者:
相关文件:
收藏者: