Skip to content

Commit

Permalink
add back makefile and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthpun committed Feb 1, 2024
1 parent 2a83347 commit 702e796
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Coverage artifacts
coverage.zip
coverage.txt
cover.json
cover-summary
index.html

.DS_Store

# Ignore flow json config
flow.json
flow*.json
!tests/flow.json

# IDE related files
.idea
.vscode
git
42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# The short Git commit hash
SHORT_COMMIT := $(shell git rev-parse --short HEAD)
# The Git commit hash
COMMIT := $(shell git rev-parse HEAD)
# The tag of the current commit, otherwise empty
VERSION := $(shell git describe --tags --abbrev=0 --exact-match 2>/dev/null)
# Name of the cover profile
COVER_PROFILE := coverage.txt
# Disable go sum database lookup for private repos
GOPRIVATE := github.com/dapperlabs/*
# Ensure go bin path is in path (Especially for CI)
GOPATH ?= $(HOME)/go
PATH := $(PATH):$(GOPATH)/bin
# OS
UNAME := $(shell uname)

MIXPANEL_PROJECT_TOKEN := 3fae49de272be1ceb8cf34119f747073

.PHONY: test
test:
GO111MODULE=on go test -coverprofile=$(COVER_PROFILE) $(if $(JSON_OUTPUT),-json,) ./...

.PHONY: install-tools
install-tools:
cd ${GOPATH}; \
mkdir -p ${GOPATH}; \
GO111MODULE=on go install github.com/axw/gocov/gocov@latest; \
GO111MODULE=on go install github.com/matm/gocov-html/cmd/gocov-html@latest; \
GO111MODULE=on go install github.com/sanderhahn/gozip/cmd/gozip@latest; \
GO111MODULE=on go install github.com/vektra/mockery/[email protected];

.PHONY: generate-schema
generate-schema:
go run ./cmd/flow-schema/flow-schema.go ./schema.json

.PHONY: check-schema
check-schema:
go run ./cmd/flow-schema/flow-schema.go --verify=true ./schema.json

.PHONY: generate
generate: install-tools
go generate ./...
1 change: 0 additions & 1 deletion mocks/Services.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 702e796

Please sign in to comment.