mirror of https://github.com/docker/cli.git
Add a Jenkinsfile
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
b5cb5ee446
commit
63d76065bb
|
@ -0,0 +1,12 @@
|
||||||
|
wrappedNode(label: 'linux && x86_64', cleanWorkspace: true) {
|
||||||
|
timeout(time: 60, unit: 'MINUTES') {
|
||||||
|
stage "Git Checkout"
|
||||||
|
checkout scm
|
||||||
|
|
||||||
|
stage "Run end-to-end test suite"
|
||||||
|
sh "docker version"
|
||||||
|
sh "E2E_UNIQUE_ID=clie2e${BUILD_NUMBER} \
|
||||||
|
IMAGE_TAG=clie2e${BUILD_NUMBER} \
|
||||||
|
make -f docker.Makefile test-e2e"
|
||||||
|
}
|
||||||
|
}
|
|
@ -4,10 +4,10 @@
|
||||||
# Makefile for developing using Docker
|
# Makefile for developing using Docker
|
||||||
#
|
#
|
||||||
|
|
||||||
DEV_DOCKER_IMAGE_NAME = docker-cli-dev
|
DEV_DOCKER_IMAGE_NAME = docker-cli-dev$(IMAGE_TAG)
|
||||||
LINTER_IMAGE_NAME = docker-cli-lint
|
LINTER_IMAGE_NAME = docker-cli-lint$(IMAGE_TAG)
|
||||||
CROSS_IMAGE_NAME = docker-cli-cross
|
CROSS_IMAGE_NAME = docker-cli-cross$(IMAGE_TAG)
|
||||||
VALIDATE_IMAGE_NAME = docker-cli-shell-validate
|
VALIDATE_IMAGE_NAME = docker-cli-shell-validate$(IMAGE_TAG)
|
||||||
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
||||||
VERSION = $(shell cat VERSION)
|
VERSION = $(shell cat VERSION)
|
||||||
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT
|
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT
|
||||||
|
@ -91,6 +91,6 @@ yamldocs: build_docker_image
|
||||||
shellcheck: build_shell_validate_image
|
shellcheck: build_shell_validate_image
|
||||||
docker run -ti --rm $(ENVVARS) $(MOUNTS) $(VALIDATE_IMAGE_NAME) make shellcheck
|
docker run -ti --rm $(ENVVARS) $(MOUNTS) $(VALIDATE_IMAGE_NAME) make shellcheck
|
||||||
|
|
||||||
.PHONY: test-e2e:
|
.PHONY: test-e2e
|
||||||
test-e2e: binary
|
test-e2e: binary
|
||||||
./scripts/test/e2e/wrapper
|
./scripts/test/e2e/wrapper
|
||||||
|
|
|
@ -2,7 +2,10 @@ FROM docker/compose:1.15.0
|
||||||
|
|
||||||
RUN apk add -U bash curl
|
RUN apk add -U bash curl
|
||||||
|
|
||||||
RUN curl -Ls https://download.docker.com/linux/static/edge/x86_64/docker-17.06.0-ce.tgz | \
|
ARG DOCKER_CHANNEL=edge
|
||||||
|
ARG DOCKER_VERSION=17.06.0-ce
|
||||||
|
RUN export URL=https://download.docker.com/linux/static; \
|
||||||
|
curl -Ls $URL/$DOCKER_CHANNEL/x86_64/docker-$DOCKER_VERSION.tgz | \
|
||||||
tar -xz docker/docker && \
|
tar -xz docker/docker && \
|
||||||
mv docker/docker /usr/local/bin/ && \
|
mv docker/docker /usr/local/bin/ && \
|
||||||
rmdir docker
|
rmdir docker
|
||||||
|
@ -12,4 +15,3 @@ COPY scripts/test/e2e scripts/test/e2e
|
||||||
COPY e2e/compose-env.yaml e2e/compose-env.yaml
|
COPY e2e/compose-env.yaml e2e/compose-env.yaml
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "/work/scripts/test/e2e/run"]
|
ENTRYPOINT ["bash", "/work/scripts/test/e2e/run"]
|
||||||
CMD []
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version: '3.3'
|
version: '2.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
registry:
|
registry:
|
||||||
|
|
Loading…
Reference in New Issue