mirror of https://github.com/docker/cli.git
Verify that vendored files are correct
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
0a613971b9
commit
31851fbe3c
10
Makefile
10
Makefile
|
@ -25,3 +25,13 @@ cross: clean
|
||||||
@gox -output build/docker-{{.OS}}-{{.Arch}} \
|
@gox -output build/docker-{{.OS}}-{{.Arch}} \
|
||||||
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64" \
|
-osarch="linux/arm linux/amd64 darwin/amd64 windows/amd64" \
|
||||||
github.com/docker/cli/cmd/docker
|
github.com/docker/cli/cmd/docker
|
||||||
|
|
||||||
|
vendor: vendor.conf
|
||||||
|
@vndr 2> /dev/null
|
||||||
|
@if [ "`git status --porcelain -- vendor 2>/dev/nul`" ]; then \
|
||||||
|
echo; echo "vendoring is wrong. These files were changed:"; \
|
||||||
|
echo; git status --porcelain -- vendor 2>/dev/nul; \
|
||||||
|
echo; exit 1; \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
ci: cross test
|
||||||
|
|
12
circle.yml
12
circle.yml
|
@ -7,11 +7,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- run:
|
- run:
|
||||||
name: "Lint"
|
name: "Lint"
|
||||||
command: |
|
command: |
|
||||||
docker build -f dockerfiles/Dockerfile.lint --tag cli-linter .
|
docker build -f dockerfiles/Dockerfile.lint --tag cli-linter .
|
||||||
docker run cli-linter
|
docker run cli-linter
|
||||||
- run:
|
- run:
|
||||||
name: "Build and Unit Test"
|
name: "Build and Unit Test"
|
||||||
command: docker build -f dockerfiles/Dockerfile.ci .
|
command: |
|
||||||
|
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
||||||
|
docker run cli-builder
|
||||||
|
- run:
|
||||||
|
name: "Vendor"
|
||||||
|
command: |
|
||||||
|
docker run cli-builder make vendor
|
||||||
|
|
|
@ -24,7 +24,4 @@ COPY . /go/src/github.com/docker/cli
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
WORKDIR /go/src/github.com/docker/cli
|
||||||
|
|
||||||
RUN make cross
|
CMD ["make", "ci"]
|
||||||
RUN make test
|
|
||||||
|
|
||||||
CMD sh
|
|
||||||
|
|
Loading…
Reference in New Issue