mirror of https://github.com/docker/cli.git
Run steps in parallel.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c31d25653f
commit
4aa65d9833
2
Makefile
2
Makefile
|
@ -34,5 +34,3 @@ vendor: vendor.conf
|
||||||
echo; git status --porcelain -- vendor 2>/dev/nul; \
|
echo; git status --porcelain -- vendor 2>/dev/nul; \
|
||||||
echo; exit 1; \
|
echo; exit 1; \
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
ci: cross test
|
|
||||||
|
|
24
circle.yml
24
circle.yml
|
@ -1,27 +1,41 @@
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
working_directory: ~/cli
|
working_directory: /work
|
||||||
docker:
|
docker:
|
||||||
- image: docker:17.05
|
- image: docker:17.05
|
||||||
|
parallelism: 4
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: "Install Git and SSH"
|
name: "Install Git and SSH"
|
||||||
command: |
|
command: apk add -U git openssh
|
||||||
apk add -U git openssh
|
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- run:
|
- run:
|
||||||
name: "Lint"
|
name: "Lint"
|
||||||
command: |
|
command: |
|
||||||
|
if [ "$CIRCLE_NODE_INDEX" != "0" ]; then exit; fi
|
||||||
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: "Cross"
|
||||||
command: |
|
command: |
|
||||||
|
if [ "$CIRCLE_NODE_INDEX" != "1" ]; then exit; fi
|
||||||
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
||||||
docker run cli-builder
|
docker run --name cross cli-builder make cross
|
||||||
|
docker cp cross:/go/src/github.com/docker/cli/build /work/build
|
||||||
|
- run:
|
||||||
|
name: "Unit Test"
|
||||||
|
command: |
|
||||||
|
if [ "$CIRCLE_NODE_INDEX" != "2" ]; then exit; fi
|
||||||
|
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
||||||
|
docker run cli-builder make test
|
||||||
- run:
|
- run:
|
||||||
name: "Vendor"
|
name: "Vendor"
|
||||||
command: |
|
command: |
|
||||||
|
if [ "$CIRCLE_NODE_INDEX" != "3" ]; then exit; fi
|
||||||
|
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
||||||
docker run cli-builder make vendor
|
docker run cli-builder make vendor
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: /work/build
|
||||||
|
|
|
@ -23,5 +23,3 @@ 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
|
||||||
|
|
||||||
CMD ["make", "ci"]
|
|
||||||
|
|
Loading…
Reference in New Issue