mirror of
https://github.com/docker/cli.git
synced 2026-09-28 02:06:53 -04:00
Add a new entrypoint for CI
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: dbf580be57a4bb854d7ce20d313e3a22ea337be5 Component: engine
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all binary dynbinary build cross deb help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration test-unit tgz validate win
|
.PHONY: all binary dynbinary build cross deb help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration test-unit validate win
|
||||||
|
|
||||||
# set the graph driver as the current graphdriver if not set
|
# set the graph driver as the current graphdriver if not set
|
||||||
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //'))
|
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //'))
|
||||||
@@ -164,9 +164,6 @@ test-integration: build ## run the integration tests
|
|||||||
test-unit: build ## run the unit tests
|
test-unit: build ## run the unit tests
|
||||||
$(DOCKER_RUN_DOCKER) hack/test/unit
|
$(DOCKER_RUN_DOCKER) hack/test/unit
|
||||||
|
|
||||||
tgz: build ## build the archives (.zip on windows and .tgz\notherwise) containing the binaries
|
|
||||||
$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary binary cross tgz
|
|
||||||
|
|
||||||
validate: build ## validate DCO, Seccomp profile generation, gofmt,\n./pkg/ isolation, golint, tests, tomls, go vet and vendor
|
validate: build ## validate DCO, Seccomp profile generation, gofmt,\n./pkg/ isolation, golint, tests, tomls, go vet and vendor
|
||||||
$(DOCKER_RUN_DOCKER) hack/validate/all
|
$(DOCKER_RUN_DOCKER) hack/validate/all
|
||||||
|
|
||||||
|
|||||||
@@ -140,10 +140,7 @@ func (daemon *Daemon) StoreHosts(hosts []string) {
|
|||||||
|
|
||||||
// HasExperimental returns whether the experimental features of the daemon are enabled or not
|
// HasExperimental returns whether the experimental features of the daemon are enabled or not
|
||||||
func (daemon *Daemon) HasExperimental() bool {
|
func (daemon *Daemon) HasExperimental() bool {
|
||||||
if daemon.configStore != nil && daemon.configStore.Experimental {
|
return daemon.configStore != nil && daemon.configStore.Experimental
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (daemon *Daemon) restore() error {
|
func (daemon *Daemon) restore() error {
|
||||||
|
|||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Entrypoint for jenkins arm CI build
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
hack/test/unit
|
||||||
|
|
||||||
|
hack/make.sh \
|
||||||
|
binary-daemon \
|
||||||
|
dynbinary \
|
||||||
|
test-integration
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Entrypoint for jenkins experimental CI
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
export DOCKER_EXPERIMENTAL=y
|
||||||
|
|
||||||
|
hack/make.sh \
|
||||||
|
binary-daemon \
|
||||||
|
test-integration
|
||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Entrypoint for jenkins janky CI build
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
hack/validate/default
|
||||||
|
hack/test/unit
|
||||||
|
|
||||||
|
hack/make.sh \
|
||||||
|
binary-daemon \
|
||||||
|
dynbinary \
|
||||||
|
test-integration \
|
||||||
|
test-docker-py \
|
||||||
|
cross
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Entrypoint for jenkins powerpc CI build
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
hack/test/unit
|
||||||
|
hack/make.sh dynbinary test-integration
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Entrypoint for jenkins s390x (z) CI build
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
hack/test/unit
|
||||||
|
hack/make.sh dynbinary test-integration
|
||||||
@@ -59,12 +59,10 @@ DEFAULT_BUNDLES=(
|
|||||||
binary-daemon
|
binary-daemon
|
||||||
dynbinary
|
dynbinary
|
||||||
|
|
||||||
test-unit
|
|
||||||
test-integration
|
test-integration
|
||||||
test-docker-py
|
test-docker-py
|
||||||
|
|
||||||
cross
|
cross
|
||||||
tgz
|
|
||||||
)
|
)
|
||||||
|
|
||||||
VERSION=${VERSION:-$(< ./VERSION)}
|
VERSION=${VERSION:-$(< ./VERSION)}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo "DEPRECATED: use hack/test/unit instead of hack/make.sh test-unit" >&2
|
|
||||||
|
|
||||||
$SCRIPTDIR/test/unit 2>&1 | tee -a "$DEST/test.log"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
echo "tgz is deprecated"
|
|
||||||
@@ -56,10 +56,6 @@ func ExperimentalDaemon() bool {
|
|||||||
return testEnv.DaemonInfo.ExperimentalBuild
|
return testEnv.DaemonInfo.ExperimentalBuild
|
||||||
}
|
}
|
||||||
|
|
||||||
func NotExperimentalDaemon() bool {
|
|
||||||
return !testEnv.DaemonInfo.ExperimentalBuild
|
|
||||||
}
|
|
||||||
|
|
||||||
func IsAmd64() bool {
|
func IsAmd64() bool {
|
||||||
return os.Getenv("DOCKER_ENGINE_GOARCH") == "amd64"
|
return os.Getenv("DOCKER_ENGINE_GOARCH") == "amd64"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user