Skip to content

Commit

Permalink
Merge pull request #2435 from cevich/add_bats
Browse files Browse the repository at this point in the history
Cirrus: Add BATS package for all platforms
  • Loading branch information
openshift-merge-robot authored Mar 5, 2019
2 parents 645426f + 842d19c commit 3614764
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 27 deletions.
16 changes: 8 additions & 8 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ env:
####
#### Cache-image names to test with
###
FEDORA_CACHE_IMAGE_NAME: "fedora-29-libpod-7f4cd1f7"
PRIOR_FEDORA_CACHE_IMAGE_NAME: "fedora-28-libpod-7f4cd1f7"
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-18-libpod-84514d8b"
FEDORA_CACHE_IMAGE_NAME: "fedora-29-libpod-d6d53e40"
PRIOR_FEDORA_CACHE_IMAGE_NAME: "fedora-28-libpod-d6d53e40"
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-18-libpod-d6d53e40"
# RHEL_CACHE_IMAGE_NAME: "rhel-8-notready"
PRIOR_RHEL_CACHE_IMAGE_NAME: "rhel-7-libpod-7f4cd1f7"
PRIOR_RHEL_CACHE_IMAGE_NAME: "rhel-7-libpod-d6d53e40"
# CENTOS_CACHE_IMAGE_NAME: "centos-7-notready"

####
Expand Down Expand Up @@ -169,9 +169,9 @@ testing_task:
image_name: "${FEDORA_CACHE_IMAGE_NAME}"
image_name: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
image_name: "${UBUNTU_CACHE_IMAGE_NAME}"
image_name: "${PRIOR_RHEL_CACHE_IMAGE_NAME}"

# TODO: tests fail
# TODO: Make these work (also optional_testing_task below)
# image_name: "${PRIOR_RHEL_CACHE_IMAGE_NAME}"
# image_name: "${RHEL_CACHE_IMAGE_NAME}"
# image_name: "${CENTOS_CACHE_IMAGE_NAME}"

Expand Down Expand Up @@ -206,9 +206,9 @@ optional_testing_task:
image_name: "${FEDORA_CACHE_IMAGE_NAME}"
image_name: "${PRIOR_FEDORA_CACHE_IMAGE_NAME}"
image_name: "${UBUNTU_CACHE_IMAGE_NAME}"
image_name: "${PRIOR_RHEL_CACHE_IMAGE_NAME}"
# TODO: Make these work (also build_images_task below)
# TODO: Make these work (also testing_task above)
# image_name: "${RHEL_CACHE_IMAGE_NAME}"
# image_name: "${PRIOR_RHEL_CACHE_IMAGE_NAME}"
# image_name: "${CENTOS_CACHE_IMAGE_NAME}"

timeout_in: 60m
Expand Down
15 changes: 0 additions & 15 deletions contrib/cirrus/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,21 +300,6 @@ EOF
fi
}

# Runs in testing VM, not image building
install_testing_dependencies() {
echo "Installing ginkgo, gomega, and easyjson into \$GOPATH=$GOPATH"
req_env_var "
GOPATH $GOPATH
GOSRC $GOSRC
"
cd "$GOSRC"
ooe.sh go get -u github.com/onsi/ginkgo/ginkgo
ooe.sh install -D -m 755 "$GOPATH"/bin/ginkgo /usr/bin/
ooe.sh go get github.com/onsi/gomega/...
ooe.sh go get -u github.com/mailru/easyjson/...
sudo install -D -m 755 "$GOPATH"/bin/easyjson /usr/bin/
}

install_packer_copied_files(){
# Install cni config, policy and registry config
sudo install -D -m 755 /tmp/libpod/cni/87-podman-bridge.conflist \
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/packer/centos_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ooe.sh sudo yum -y install centos-release-scl epel-release
ooe.sh sudo yum -y install \
PyYAML \
atomic-registries \
bats \
btrfs-progs-devel \
bzip2 \
device-mapper-devel \
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/packer/fedora_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ooe.sh sudo dnf update -y

ooe.sh sudo dnf install -y \
atomic-registries \
bats \
btrfs-progs-devel \
bzip2 \
device-mapper-devel \
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/packer/rhel_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ooe.sh sudo yum -y update
ooe.sh sudo yum -y install \
PyYAML \
atomic-registries \
bats \
btrfs-progs-devel \
bzip2 \
device-mapper-devel \
Expand Down
1 change: 1 addition & 0 deletions contrib/cirrus/packer/ubuntu_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ooe.sh sudo -E apt-get -qq install \
apparmor \
autoconf \
automake \
bats \
bison \
btrfs-tools \
build-essential \
Expand Down
4 changes: 0 additions & 4 deletions contrib/cirrus/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ then

cd "${GOSRC}/"
source "$SCRIPT_BASE/lib.sh"

# Only testing-VMs need deps installed, not image-builder VM
echo "$CIRRUS_TASK_NAME" | grep -q 'image' || \
install_testing_dependencies # must exist in $GOPATH
fi

record_timestamp "env. setup end"

0 comments on commit 3614764

Please sign in to comment.