mirror of https://github.com/hashicorp/boundary
This adds new makefile targets and configuration to run the tests in the api and sdk modules. These do not run by default since `go test ./...` does not cross module boundaries.pull/1753/head
parent
0bc9e30aa6
commit
0a4df95fdd
@ -0,0 +1,14 @@
|
||||
---
|
||||
description: >
|
||||
Ensure the right version of Go is installed and set PATH, GOPATH, GOROOT
|
||||
steps:
|
||||
- run:
|
||||
name: "Install go"
|
||||
command: |
|
||||
make install-go
|
||||
source ~/.bashrc
|
||||
echo 'export GOROOT=$GOROOT' >> "$BASH_ENV"
|
||||
echo 'export GOPATH=$GOPATH' >> "$BASH_ENV"
|
||||
echo 'export PATH=$PATH' >> "$BASH_ENV"
|
||||
echo "$ go version"
|
||||
go version
|
||||
@ -0,0 +1,9 @@
|
||||
executor: go-machine-medium
|
||||
steps:
|
||||
- checkout
|
||||
- install-go
|
||||
- run:
|
||||
name: "Run API Tests"
|
||||
no_output_timeout: 15m
|
||||
command: |
|
||||
make test-api
|
||||
@ -0,0 +1,9 @@
|
||||
executor: go-machine-medium
|
||||
steps:
|
||||
- checkout
|
||||
- install-go
|
||||
- run:
|
||||
name: "Run SDK Tests"
|
||||
no_output_timeout: 15m
|
||||
command: |
|
||||
make test-sdk
|
||||
@ -0,0 +1,6 @@
|
||||
.PHONY: all
|
||||
all: test
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v ./...
|
||||
@ -0,0 +1,6 @@
|
||||
.PHONY: all
|
||||
all: test
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v ./...
|
||||
Loading…
Reference in new issue