summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-27 06:45:07 -0700
committerGitHub <noreply@github.com>2019-03-27 06:45:07 -0700
commitaba3a8423682635f98e4e3fd4d9a3e5a36667aeb (patch)
tree177dc9dc44101d3ae9669022d46504150baf3d24
parentfcbca91dca6d958681505569a74cf5739b9cacdc (diff)
parentbb068e46f02c8244af00bd8beb4b70e95fb9e311 (diff)
downloadpodman-aba3a8423682635f98e4e3fd4d9a3e5a36667aeb.tar.gz
podman-aba3a8423682635f98e4e3fd4d9a3e5a36667aeb.tar.bz2
podman-aba3a8423682635f98e4e3fd4d9a3e5a36667aeb.zip
Merge pull request #2648 from cevich/check_manpages
Cirrus: Verify manpages for all subcommands exist
-rw-r--r--.cirrus.yml17
-rwxr-xr-xcontrib/gate/entrypoint.sh2
2 files changed, 11 insertions, 8 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index d097c9f47..7bc00dbb5 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -109,6 +109,7 @@ gating_task:
env:
CIRRUS_WORKING_DIR: "/usr/src/libpod"
+ GOSRC: "/go/src/github.com/containers/libpod"
# Runs within Cirrus's "community cluster"
container:
@@ -119,17 +120,20 @@ gating_task:
timeout_in: 20m
gate_script:
+ # N/B: entrypoint.sh resets $GOSRC (same as make clean)
- '/usr/local/bin/entrypoint.sh validate'
- '/usr/local/bin/entrypoint.sh lint'
- '${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/test/test_dot_cirrus_yaml.py'
# This task builds Podman with different buildtags to ensure the build does
- # not break.
+ # not break. It also verifies all sub-commands have man pages.
build_script:
- - '/usr/local/bin/entrypoint.sh clean podman'
+ - '/usr/local/bin/entrypoint.sh podman'
+ - 'cd $GOSRC && ./hack/podman-commands.sh'
+ # N/B: need 'clean' so some commited files are re-generated.
- '/usr/local/bin/entrypoint.sh clean podman-remote'
- '/usr/local/bin/entrypoint.sh clean podman BUILDTAGS="exclude_graphdriver_devicemapper selinux seccomp"'
- - '/usr/local/bin/entrypoint.sh clean podman-remote-darwin'
+ - '/usr/local/bin/entrypoint.sh podman-remote-darwin'
on_failure:
master_script: '$CIRRUS_WORKING_DIR/$SCRIPT_BASE/notice_master_failure.sh'
@@ -178,13 +182,12 @@ build_each_commit_task:
cpu: 2
memory: "4Gb"
disk: 40
- matrix:
- image_name: "${FEDORA_CACHE_IMAGE_NAME}"
+ image_name: "${FEDORA_CACHE_IMAGE_NAME}"
timeout_in: 30m
- script:
- - '$SCRIPT_BASE/setup_environment.sh'
+ setup_environment_script: '$SCRIPT_BASE/setup_environment.sh'
+ build_each_commit_script:
- 'git fetch --depth $CIRRUS_CLONE_DEPTH origin $CIRRUS_BASE_BRANCH'
- 'env GOPATH=/var/tmp/go/ make build-all-new-commits GIT_BASE_BRANCH=origin/$CIRRUS_BASE_BRANCH'
diff --git a/contrib/gate/entrypoint.sh b/contrib/gate/entrypoint.sh
index e16094cc0..0189cf7c5 100755
--- a/contrib/gate/entrypoint.sh
+++ b/contrib/gate/entrypoint.sh
@@ -10,6 +10,6 @@
# Working from a copy avoids needing to perturb the actual source files
mkdir -p "$GOSRC"
/usr/bin/rsync --recursive --links --quiet --safe-links \
- --perms --times "${SRCPATH}/" "${GOSRC}/"
+ --perms --times --delete "${SRCPATH}/" "${GOSRC}/"
cd "$GOSRC"
make "$@"