Remove packr step in makefile
This commit is contained in:
parent
a211656906
commit
120ce89ee7
8
Makefile
8
Makefile
|
|
@ -34,17 +34,13 @@ download-tools:
|
||||||
go get -u github.com/gobuffalo/packr/...
|
go get -u github.com/gobuffalo/packr/...
|
||||||
go get -u github.com/go-swagger/go-swagger/cmd/swagger
|
go get -u github.com/go-swagger/go-swagger/cmd/swagger
|
||||||
|
|
||||||
update-swagger-spec:
|
update-swagger:
|
||||||
swagger generate spec --scan-models -o docs/spec.json
|
swagger generate spec --scan-models -o docs/spec.json
|
||||||
|
|
||||||
update-swagger: update-swagger-spec
|
check-swagger: update-swagger
|
||||||
(cd docs && packr)
|
|
||||||
|
|
||||||
check-swagger: update-swagger-spec
|
|
||||||
## add the docs to git, this changes line endings in git, otherwise this does not work on windows
|
## add the docs to git, this changes line endings in git, otherwise this does not work on windows
|
||||||
git add docs
|
git add docs
|
||||||
if [ -n "$(shell git status --porcelain | grep docs)" ]; then \
|
if [ -n "$(shell git status --porcelain | grep docs)" ]; then \
|
||||||
git status --porcelain | grep docs; \
|
|
||||||
echo Swagger Spec is not up-to-date; \
|
echo Swagger Spec is not up-to-date; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue