commit
fbde30c8c0
|
@ -5,20 +5,8 @@ version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
# specify the version
|
|
||||||
- image: circleci/golang:1.11
|
- image: circleci/golang:1.11
|
||||||
|
|
||||||
# CircleCI maintains a library of pre-built images
|
|
||||||
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
||||||
|
|
||||||
#### TEMPLATE_NOTE: go expects specific checkout path representing url
|
|
||||||
#### expecting it in the form of
|
|
||||||
#### /go/src/github.com/circleci/go-tool
|
|
||||||
#### /go/src/bitbucket.org/circleci/go-tool
|
|
||||||
working_directory: /go/src/github.com/hashicorp/packer
|
working_directory: /go/src/github.com/hashicorp/packer
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
# specify any bash command here prefixed with `run: `
|
|
||||||
- run: pwd
|
|
||||||
- run: make ci
|
- run: make ci
|
4
Makefile
4
Makefile
|
@ -23,7 +23,7 @@ export GOLDFLAGS
|
||||||
|
|
||||||
.PHONY: bin checkversion ci default deps fmt fmt-docs fmt-examples generate releasebin test testacc testrace updatedeps
|
.PHONY: bin checkversion ci default deps fmt fmt-docs fmt-examples generate releasebin test testacc testrace updatedeps
|
||||||
|
|
||||||
default: deps generate testrace dev releasebin package dev fmt fmt-check mode-check fmt-docs fmt-examples
|
default: deps generate testrace dev releasebin package dev fmt fmt-check mode-check fmt-docs fmt-examples
|
||||||
|
|
||||||
ci: testrace
|
ci: testrace
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ testacc: deps generate ## Run acceptance tests
|
||||||
PACKER_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout=45m
|
PACKER_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout=45m
|
||||||
|
|
||||||
testrace: fmt-check mode-check vet ## Test with race detection enabled
|
testrace: fmt-check mode-check vet ## Test with race detection enabled
|
||||||
@go test -race $(TEST) $(TESTARGS) -timeout=2m
|
@go test -race $(TEST) $(TESTARGS) -timeout=2m -p=8
|
||||||
|
|
||||||
updatedeps:
|
updatedeps:
|
||||||
@echo "INFO: Packer deps are managed by govendor. See .github/CONTRIBUTING.md"
|
@echo "INFO: Packer deps are managed by govendor. See .github/CONTRIBUTING.md"
|
||||||
|
|
Loading…
Reference in New Issue