forked from josephspurrier/goversioninfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ec8a0c
commit a67be3d
Showing
4 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ vendor/ | |
cmd/goversioninfo/goversioninfo | ||
*.exe | ||
*.syso | ||
versioninfo.go | ||
/bin | ||
|
||
# OS Files | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This Makefile is an easy way to run common operations. | ||
# Execute commands this: | ||
# * make test-go | ||
# * make test-integration | ||
# | ||
# Tip: Each command is run on its own line so you can't CD unless you | ||
# connect commands together using operators. See examples: | ||
# A; B # Run A and then B, regardless of success of A | ||
# A && B # Run B if and only if A succeeded | ||
# A || B # Run B if and only if A failed | ||
# A & # Run A in background. | ||
# Source: https://askubuntu.com/a/539293 | ||
# | ||
# Tip: Use $(shell app param) syntax when expanding a shell return value. | ||
|
||
.PHONY: test-go | ||
test-go: | ||
# Run the Go tests. | ||
go test ./... | ||
|
||
.PHONY: test-integration | ||
test-integration: | ||
# Build the application. | ||
mkdir -p bin && go build -o bin/goversioninfo cmd/goversioninfo/main.go | ||
# Test the application. | ||
PATH="${PATH}:$(shell pwd)/bin" ./testdata/bash/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters