Skip to content

Commit

Permalink
Fixed makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdigest committed Mar 18, 2023
1 parent 228ba65 commit 23b6acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 2 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,8 @@ install:
./bin/minimock:
go build ./cmd/minimock -o ./bin/minimock

clean:
[ -e ./tests/formatter_mock.go.test_origin ] && mv -f ./tests/formatter_mock.go.test_origin ./tests/formatter_mock.go
[ -e ./tests/tester_mock_test.go.test_origin ] && mv -f ./tests/tester_mock_test.go.test_origin ./tests/tester_mock_test.go
[ -e ./tests/generic/generic_inout.go.test_origin ] && mv -f ./tests/generic/generic_inout.go.test_origin ./tests/generic/generic_inout.go
[ -e ./tests/generic/generic_out.go.test_origin ] && mv -f ./tests/generic/generic_out.go.test_origin ./tests/generic/generic_out.go
[ -e ./tests/generic/generic_in.go.test_origin ]&& mv -f ./tests/generic/generic_in.go.test_origin ./tests/generic/generic_in.go
rm -Rf bin/ dist/

test_save_origin:
[ -e ./tests/formatter_mock.go.test_origin ] || cp ./tests/formatter_mock.go ./tests/formatter_mock.go.test_origin
[ -e ./tests/tester_mock_test.go.test_origin ] || cp ./tests/tester_mock_test.go ./tests/tester_mock_test.go.test_origin
[ -e ./tests/generic/generic_inout.go.test_origin ] || cp ./tests/generic/generic_inout.go ./tests/generic/generic_inout.go.test_origin
[ -e ./tests/generic/generic_out.go.test_origin ] || cp ./tests/generic/generic_out.go ./tests/generic/generic_out.go.test_origin
[ -e ./tests/generic/generic_in.go.test_origin ]|| cp ./tests/generic/generic_in.go ./tests/generic/generic_in.go.test_origin

test: test_save_origin generate
diff ./tests/formatter_mock.go ./tests/formatter_mock.go.test_origin
diff ./tests/tester_mock_test.go ./tests/tester_mock_test.go.test_origin
diff ./tests/generic/generic_inout.go ./tests/generic/generic_inout.go.test_origin
diff ./tests/generic/generic_out.go ./tests/generic/generic_out.go.test_origin
diff ./tests/generic/generic_in.go ./tests/generic/generic_in.go.test_origin
go test -race ./...
test:
go test $(go list ./... | grep -v /snapshots)

release: ./bin/goreleaser
./bin/goreleaser release
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module github.com/gojuno/minimock/v3

require (
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible
github.com/davecgh/go-spew v1.1.1
github.com/hexdigest/gowrap v1.1.8
github.com/pkg/errors v0.9.1
Expand All @@ -11,7 +12,6 @@ require (
)

require (
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible // indirect
github.com/kr/text v0.2.0 // indirect
golang.org/x/mod v0.4.2 // indirect
golang.org/x/sys v0.1.0 // indirect
Expand Down

0 comments on commit 23b6acb

Please sign in to comment.