Skip to content

Commit 1d8d8ee

Browse files
committed
Add 'buildall' to make file
Adds `make buildall` which builds the source code & the tests.
1 parent 38e4044 commit 1d8d8ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
22

33
default: fmt build
44
build: ;go build -o terraform-provider-oci
5+
6+
### buildall will build both the src & test code. Go doesn't build the tests by default. Running a fake
7+
### test will compile the test code w/o running any tests (because it won't find it).
8+
buildall: build
9+
go test ./provider -run FAKE_BUILD_TEST
10+
511
clean: ;@rm -rf terraform-provider-oci rm -rf bin/* rm bin
612
fmt: ;goimports -w -local github.com/oracle/terraform-provider-oci $(GOFMT_FILES)
713

0 commit comments

Comments
 (0)