-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make file replace spaces with tabs
- Loading branch information
1 parent
e0554fa
commit 9bfae07
Showing
1 changed file
with
11 additions
and
11 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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
all: install_dependencies build_binaries format lint test | ||
|
||
install_dependencies: | ||
go get ./... | ||
go get ./... | ||
|
||
build_binaries: install_dependencies | ||
go build -o ./httpserver cmd/httpserver/main.go | ||
go build -o ./ginserver cmd/ginserver/main.go | ||
go build -o ./httpserver cmd/httpserver/main.go | ||
go build -o ./ginserver cmd/ginserver/main.go | ||
|
||
run_binaries: build_binaries | ||
./httpserver | ||
./ginserver | ||
./httpserver | ||
./ginserver | ||
|
||
format: | ||
go fmt ./... | ||
go fmt ./... | ||
lint: | ||
golangci-lint run ./... | ||
golangci-lint run ./... | ||
|
||
test: | ||
go test ./... -v | ||
go test ./... -v | ||
|
||
build_images: | ||
docker build --tag=buildme-http:v3.0 --target=http | ||
docker build --tag=buildme-gin:v3.0 --target=gin | ||
docker build --tag=buildme-http:v3.0 --target=http | ||
docker build --tag=buildme-gin:v3.0 --target=gin | ||
|
||
run_containers: | ||
docker compose up | ||
docker compose up |