Added local bitbucket testing scripts; fix username passing for travis build

This commit is contained in:
Gavin Bunney
2019-10-08 11:12:06 -07:00
parent 8d6fc545f5
commit 716dc05488
5 changed files with 28 additions and 5 deletions

View File

@@ -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 \