forked from hyperledger-labs/fabric-ansible-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
49 lines (38 loc) · 770 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# SPDX-License-Identifier: Apache-2.0
#
default:
@just --list
# Local ansible-galalxy build and install
local:
ansible-galaxy collection build -f
ansible-galaxy collection install $(ls -1 | grep fabric) -f
# Lint the codebase
lint:
#!/bin/bash
set -ex -o pipefail
flake8 .
ansible-lint
shellcheck tutorial/*.sh
yamllint .
docker:
docker build -t fabric-ansible .
# Build the documentation
docs:
#!/bin/bash
set -ex -o pipefail
cd docs
make clean
make all
toolcheck:
#!/bin/bash
set -e -o pipefail
confirm() {
if ! command -v $1 &> /dev/null
then
echo "$1 could not be found"
exit
fi
}
confirm "shellcheck"
confirm "yamllint"