Skip to content

Commit

Permalink
makefile: decompose deps installation
Browse files Browse the repository at this point in the history
Since it will be more convenient to see CI jobs making its own work, the
installation of rocks was rewriten to install rocks only for one task.
  • Loading branch information
themilchenko committed Nov 2, 2024
1 parent d31d99a commit 2d8531a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,24 @@ coveralls: $(LUACOV_STATS)
echo "Send code coverage data to the coveralls.io service"
luacov-coveralls --include ^roles --verbose --repo-token ${GITHUB_TOKEN}

deps:
deps-test:
tt rocks install luatest 1.0.1
tt rocks install luacheck 0.26.0

deps-coverage: deps-test
tt rocks install luacov 0.13.0-1
tt rocks install luacov-coveralls 0.2.3-1 --server=http://luarocks.org

deps-lint:
tt rocks install luacheck 0.26.0

deps:
ifeq ($(depname), test)
$(MAKE) deps-test
else ifeq ($(depname), coverage)
$(MAKE) deps-coverage
else ifeq ($(depname), lint)
$(MAKE) deps-lint
else
$(MAKE) deps-coverage deps-lint
endif
tt rocks make

0 comments on commit 2d8531a

Please sign in to comment.