Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from d3sw/mold-tests
Browse files Browse the repository at this point in the history
add tests to mold build
  • Loading branch information
euforia authored Nov 21, 2018
2 parents dc618a4 + b9d5aba commit 0a67c5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .mold.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ build:
cache: true
commands:
- apt-get update
- apt-get install -y zip
- wget https://releases.hashicorp.com/consul/1.4.0/consul_1.4.0_linux_amd64.zip -P /tmp
- unzip -o /tmp/consul_1.4.0_linux_amd64.zip -d /bin
- go get -u github.com/mitchellh/gox
- make test
- make release
workdir: "/go/src/github.com/d3sw/replicator"
environment: []
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lint:
@echo "==> Running $@..."
@golint ./... | grep -v vendor | tee /dev/stderr

test: fmt lint vet
test:
@echo "==> Running $@..."
@go test -v -tags "$(BUILDTAGS) cgo" $(shell go list ./... | grep -v vendor)

Expand All @@ -43,7 +43,7 @@ vet:
echo "and fix them if necessary before submitting the code for reviewal."; \
fi

deps:
deps: fmt lint vet
@echo "==> Running $@..."
@dep ensure

Expand Down

0 comments on commit 0a67c5b

Please sign in to comment.