mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-04-18 06:49:44 +02:00
Added local bitbucket testing scripts; fix username passing for travis build
This commit is contained in:
9
Makefile
9
Makefile
@@ -3,6 +3,10 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
|
||||
PKG_NAME=bitbucket
|
||||
export GO111MODULE=on
|
||||
|
||||
export BITBUCKET_SERVER=http://localhost:7990
|
||||
export BITBUCKET_USERNAME=admin
|
||||
export BITBUCKET_PASSWORD=admin
|
||||
|
||||
default: build
|
||||
|
||||
build: fmtcheck
|
||||
@@ -16,6 +20,11 @@ test: fmtcheck
|
||||
testacc: fmtcheck
|
||||
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -count=1
|
||||
|
||||
testacc-bitbucket: fmtcheck
|
||||
@sh scripts/start-docker-compose.sh
|
||||
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m -count=1
|
||||
@sh scripts/stop-docker-compose.sh
|
||||
|
||||
vet:
|
||||
@echo "go vet ."
|
||||
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
|
||||
|
||||
Reference in New Issue
Block a user