34 lines
559 B
Markdown
34 lines
559 B
Markdown
# Boring Backup
|
|
|
|
Bash powered backup tool.
|
|
|
|
# Testing
|
|
|
|
BB uses amazing test suite: https://bats-core.readthedocs.io/
|
|
|
|
Install Bats:
|
|
|
|
git clone https://github.com/bats-core/bats-core.git
|
|
bash bats-core/install.sh ~/.local
|
|
|
|
Add some Bats extensions:
|
|
|
|
git clone https://github.com/bats-core/bats-assert.git tests/helpers/bats-assert
|
|
git clone https://github.com/bats-core/bats-support.git tests/helpers/bats-support
|
|
|
|
Run tests:
|
|
|
|
make tests
|
|
|
|
# Linting
|
|
|
|
Run shellcheck:
|
|
|
|
make lint
|
|
|
|
# Building
|
|
|
|
Build docs (manpage and HTML):
|
|
|
|
make docs
|