-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests; print build info; add makefile
- Loading branch information
Showing
13 changed files
with
100,311 additions
and
4 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
* text=auto | ||
test/fixtures/** -text |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Thumbs.db | ||
.DS_Store | ||
/bin/ | ||
/dist/ | ||
/vendor/ |
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,34 @@ | ||
GOCMD=go | ||
|
||
MAIN=cmd/lwc/main.go | ||
BIN=bin | ||
|
||
VERSION=$(shell git describe --tags --abbrev=0 --always) | ||
COMMIT=$(shell git log --pretty=format:'%h' -n 1) | ||
# Same format as goreleaser | ||
DATE=$(shell date +%Y-%m-%d_%H:%M:%S) | ||
LDFLAGS="-s -w -X main.version=$(VERSION)+git.$(COMMIT) -X main.date=$(DATE)" | ||
|
||
all: build test | ||
|
||
clean: | ||
rm -rf $(BIN) | ||
|
||
build: build_debug build_release | ||
|
||
test: test_unit test_integration | ||
|
||
bin: | ||
mkdir -p $(BIN) | ||
|
||
build_debug: bin | ||
$(GOCMD) build -o $(BIN)/lwc-debug -gcflags=all='-N -l' $(MAIN) | ||
|
||
build_release: bin | ||
$(GOCMD) build -o $(BIN)/lwc -ldflags=$(LDFLAGS) $(MAIN) | ||
|
||
test_unit: | ||
$(GOCMD) test -v ./... | ||
|
||
test_integration: build_debug | ||
test/integration.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
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
Oops, something went wrong.