Unverified Commit 30640228 authored by Ola Bini's avatar Ola Bini

Add skeleton

parent 60473c52
......@@ -10,3 +10,10 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
bin/
# direnv related files
.envrc
coverage.out
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "ab4fef131ee828e96ba67d31a7d690bd5f2f42040c6766b1b12fe856f87e0ff7"
solver-name = "gps-cdcl"
solver-version = 1
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[prune]
go-tests = true
unused-packages = true
GIT_VERSION=$(shell git rev-parse HEAD)
TAG_VERSION=$(shell git tag -l --contains $$GIT_VERSION | tail -1)
BUILD_DIR=bin
GOLIST=go list ./...
default: test
test:
go test -cover -v ./...
build:
go build -i
.PHONY: build test
deps:
go get -u github.com/golang/lint/golint
#dep should also be installed, but globally.
lint:
for pkg in $$($(GOLIST) ./...) ; do \
golint $$pkg ; \
done
cover:
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment