Skip to content

Commit

Permalink
Updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgoStephenAkiki committed Jan 20, 2022
1 parent faf764f commit c3e6541
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ commands:
- run: make check
- run: make integration
- run: make test
- run: make test-generate
- run: make fakepackage
- run: make e2e

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ sign:
test-package:
mule/e2e.sh

test-generate:
test/test_generate.py

.PHONY: test e2e integration fmt lint deploy sign test-package package fakepackage cmd/algorand-indexer/algorand-indexer idb/mocks/IndexerDb.go go-algorand
4 changes: 2 additions & 2 deletions test/test_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
list_of_directories=["../idb/postgres/internal/schema"]

for dir in list_of_directories:
os.system("go generate {}".format(dir))
os.system("/usr/local/go/bin/go generate {}".format(dir))

out = check_output(["git status --porcelain | wc -l"], shell=True).strip().decode('UTF-8')

if out != 0:
if out != "0":
print("Number of files modified was not 0. It was {}".format(out))
out = check_output(["git status --porcelain"], shell=True).strip().decode('UTF-8')
print("Output of 'git status --porcelain':\n {}".format(out))
Expand Down

0 comments on commit c3e6541

Please sign in to comment.