<commit_before>export GO15VENDOREXPERIMENT=1

exe = github.com/aelsabbahy/goss/cmd/goss
cmd = goss
TRAVIS_TAG ?= "0.0.0"

.PHONY: all build install test coverage deps release bench test-int lint

all: test-all

install: deps
	go install -v $(exe)

test: deps
	go test $(glide novendor)

lint: deps
	go tool vet .
	golint $(glide novendor) | grep -v 'unexported' || true

bench: deps
	go test -bench=.

coverage: deps
	go test -cover $(glide novendor)
	#go test -coverprofile=/tmp/coverage.out .
	#go tool cover -func=/tmp/coverage.out
	#go tool cover -html=/tmp/coverage.out -o /tmp/coverage.html
	#xdg-open /tmp/coverage.html

build: deps
	GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG)" -o release/$(cmd)-linux-amd64 $(exe)

release: build
	upx release/*

test-int: build
	cd integration-tests/ && ./test.sh

test-all: test lint test-int

deps:
	glide up<commit_msg>Disable upx<commit_after>export GO15VENDOREXPERIMENT=1

exe = github.com/aelsabbahy/goss/cmd/goss
cmd = goss
TRAVIS_TAG ?= "0.0.0"

.PHONY: all build install test coverage deps release bench test-int lint

all: test-all

install: deps
	go install -v $(exe)

test: deps
	go test $(glide novendor)

lint: deps
	go tool vet .
	golint $(glide novendor) | grep -v 'unexported' || true

bench: deps
	go test -bench=.

coverage: deps
	go test -cover $(glide novendor)
	#go test -coverprofile=/tmp/coverage.out .
	#go tool cover -func=/tmp/coverage.out
	#go tool cover -html=/tmp/coverage.out -o /tmp/coverage.html
	#xdg-open /tmp/coverage.html

build: deps
	GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG)" -o release/$(cmd)-linux-amd64 $(exe)

release: build
	#upx release/*

test-int: build
	cd integration-tests/ && ./test.sh

test-all: test lint test-int

deps:
	glide up
{'fraction_non_alphanumeric': 0.1315053161723559, 'fraction_numerical': 0.01119194180190263, 'mean_word_length': 3.75531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3880857', 'n_tokens_mistral': 740, 'n_tokens_neox': 711, 'n_words': 200}