1- .PHONY : fmt format lint test
1+ .PHONY : fmt format lint test update-sha256 clean ci-bash install install-bats local-install ci-py install-py-deps it-test local-install-ci setup
22
33# ## Bash
44
77 rm /usr/local/bin/filter
88 rm -rf /usr/local/lib/fs
99
10- ci-bash : lint install-bats test
10+ ci-bash : lint test
1111
1212fmt : format
1313
1414format :
15- shellcheck -x -f diff fs/operations/* | git apply
16- shellcheck -x -f diff map | git apply
17- shellcheck -x -f diff filter | git apply
15+ shellcheck -x -f diff fs/operations/* | git apply --allow-empty
16+ shellcheck -x -f diff
17+ shellcheck -x -f diff filter | git apply --allow-empty
1818
1919install :
2020 ./install.sh
2121
22- install-bats :
23- git clone https://github.com/bats-core/bats-core.git /tmp/bats-core && \
24- cd /tmp/bats-core && \
25- sudo ./install.sh /usr/local
26-
27- local-install :
28- @cp -f ./map /usr/local/bin/
29- @cp -f ./filter /usr/local/bin/
30- @cp -rf ./fs /usr/local/lib/
31-
3222lint :
3323 shellcheck -x -e SC1091 map
3424 shellcheck -x -e SC1091 filter
3525 shellcheck -x fs/operations/*
3626 shellcheck -x fs/functions/*
27+ shellcheck -x install.sh
28+ shellcheck -x update-sha256.sh
29+ shellcheck -x it-test-setup.sh
30+
31+ setup :
32+ @echo " Setting up the environment..."
33+ @brew install shellcheck bats parallel
3734
3835test :
3936 bats -j 15 tests/
4037
38+ update-sha256 :
39+ ./update-sha256.sh
40+
4141
4242# ## Python
4343
4444ci-py : install-py-deps local-install-ci it-test
4545
46+ setup-py :
47+ poetry env use python3.11
48+
4649install-py-deps :
47- pip install -r tests/integration-tests/requirements.txt
50+ poetry install --only=test
4851
49- it-test :
50- pytest -s tests/integration-tests/tests.py
52+ it-test : it-test-install
53+ poetry run pytest -s tests/integration-tests/tests.py
54+ ./it-test-setup.sh uninstall
5155
5256local-install-ci :
5357 sudo cp -f ./map /usr/local/bin/
5458 sudo cp -f ./filter /usr/local/bin/
5559 sudo cp -rf ./fs /usr/local/lib/
60+
61+ it-test-install :
62+ ./it-test-setup.sh install
63+
64+ it-test-uninstall :
65+ ./it-test-setup.sh uninstall
0 commit comments