Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: contribs/gnotray #1435

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
with:
modulepath: contribs/${{ matrix.program }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
44 changes: 23 additions & 21 deletions contribs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ help:
@echo "Available make commands:"
@cat Makefile | grep '^[a-z][^:]*:' | cut -d: -f1 | sort | sed 's/^/ /'

programs=$(wildcard */)

# command to run dependency utilities, like goimports.
rundep=go run -modfile ../misc/devdeps/go.mod

Expand All @@ -25,15 +27,29 @@ GOTEST_FLAGS ?= -v -p 1 -timeout=30m
########################################
# Dev tools
.PHONY: install
install: install.gnomd install.gnodev install.gnofaucet
install:
@set -e; for program in $(programs); do ( set -e; \
echo "[+] make -C $$program install"; \
$(MAKE) -C $$program install; \
); done

install.gnomd:; cd gnomd && go install .
install.gnodev:; $(MAKE) -C ./gnodev install
install.gnofaucet:; $(MAKE) -C ./gnofaucet install
########################################
# Test suite
.PHONY: test
test:
@set -e; for program in $(programs); do ( set -e; \
echo "[+] make -C $$program test"; \
$(MAKE) -C $$program test; \
); done

.PHONY: clean
clean:
rm -rf build
########################################
# Lint
.PHONY: lint
lint:
@set -e; for program in $(programs); do ( set -e; \
echo "[+] make -C $$program lint"; \
$(MAKE) -C $$program lint; \
); done

########################################
# Dev tools
Expand All @@ -51,17 +67,3 @@ tidy:
cd $$dir; \
go mod tidy -v; \
); done

########################################
# Test suite
.PHONY: test
test: test.gnodev
test.gnodev:
$(MAKE) -C ./gnodev test

########################################
# Lint
.PHONY: test
lint: lint.gnodev
lint.gnodev:
$(MAKE) -C ./gnodev test
Loading
Loading