Merge pull request #348 from phracek/support_github_matrix
Support GitHub matrix
This commit is contained in:
parent
9aa288d2d9
commit
05c36dd1ce
36 changed files with 3872 additions and 0 deletions
36
test/test-lib-ruby.sh
Normal file
36
test/test-lib-ruby.sh
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Functions for tests for the Ruby S2I image in OpenShift.
|
||||
#
|
||||
# IMAGE_NAME specifies a name of the candidate image used for testing.
|
||||
# The image has to be available before this script is executed.
|
||||
#
|
||||
|
||||
THISDIR=$(dirname ${BASH_SOURCE[0]})
|
||||
|
||||
source ${THISDIR}/test-lib.sh
|
||||
source ${THISDIR}/test-lib-openshift.sh
|
||||
|
||||
function test_ruby_integration() {
|
||||
local image_name=$1
|
||||
ct_os_test_s2i_app "${image_name}" \
|
||||
"https://github.com/sclorg/s2i-ruby-container.git" \
|
||||
"${VERSION}/test/puma-test-app" \
|
||||
".*"
|
||||
}
|
||||
|
||||
# Check the imagestream
|
||||
function test_ruby_imagestream() {
|
||||
case ${OS} in
|
||||
rhel7|centos7) ;;
|
||||
*) echo "Imagestream testing not supported for $OS environment." ; return 0 ;;
|
||||
esac
|
||||
|
||||
ct_os_test_image_stream_s2i "${THISDIR}/imagestreams/ruby-${OS%[0-9]*}.json" "${IMAGE_NAME}" \
|
||||
"https://github.com/sclorg/s2i-ruby-container.git" \
|
||||
"${VERSION}/test/puma-test-app" \
|
||||
".*"
|
||||
}
|
||||
|
||||
# vim: set tabstop=2:shiftwidth=2:expandtab:
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue