forked from Mastercard/terraform-provider-restapi
-
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.
feat Mastercard#257 Miscellaneous updates
* Adding a Makefile for simplicity to build the project and clean it, also to run the tests more easily * Updated the fakeserver so we can test the new func for non JSON responses
- Loading branch information
S3B4SZ17
committed
Mar 10, 2024
1 parent
f5fda96
commit 431c023
Showing
2 changed files
with
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Change these variables as necessary. | ||
MAIN_PACKAGE_PATH := ./ | ||
BINARY_NAME := terraform-provider-restapi | ||
GO := go | ||
GO_VERSION ?= 1.21 | ||
|
||
# ==================================================================================== # | ||
# DEVELOPMENT | ||
# ==================================================================================== # | ||
|
||
## test: run all tests | ||
.PHONY: test | ||
test: | ||
bash ./scripts/set-local-testing.rc | ||
bash ./scripts/test.sh | ||
|
||
## build: build the application | ||
.PHONY: build | ||
build: | ||
# Include additional build steps compilation here... | ||
$(GO) build -o=${BINARY_NAME}.o ${MAIN_PACKAGE_PATH} | ||
|
||
.PHONY: clean | ||
clean : | ||
rm ${BINARY_NAME}.o |
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