提交 35d74d57 编写于 作者: S Shoaib Lari 提交者: David Krieger

CI: Add support for Ubuntu in gpMgmt CLI tests.

We have added Ubuntu 18.04 support for the behave CLI tests.
Co-authored-by: NJacob Champion <pchampion@pivotal.io>
Co-authored-by: NDavid Krieger <dkrieger@pivotal.io>
Co-authored-by: NNikolaos Kalampalikis <nkalampalikis@pivotal.io>
上级 d54192ca
......@@ -102,6 +102,7 @@ groups:
- gate_cli_start
{% for test in CLI_BEHAVE_TESTS %}
- [[ test.name ]]
- [[ test.name ]]_ubuntu18
{% endfor %}
- check_centos
- combine_cli_coverage
......@@ -240,8 +241,10 @@ groups:
- name: CLI
jobs:
- gate_cli_start
- compile_gpdb_ubuntu18.04
{% for test in CLI_BEHAVE_TESTS %}
- [[ test.name ]]
- [[ test.name ]]_ubuntu18
{% endfor %}
- check_centos
- combine_cli_coverage
......@@ -1578,6 +1581,60 @@ jobs:
params:
JSON_KEY: ((concourse-gcs-resources-service-account-key))
- name: [[ test.name ]]_ubuntu18
plan:
- aggregate:
- get: gpdb_src
params:
submodules:
- gpMgmt/bin/pythonSrc/ext
passed: [compile_gpdb_ubuntu18.04]
- get: gpdb6-ubuntu18.04-test
- aggregate:
{% if test.use_concourse_cluster %}
- do:
- get: gpdb_binary
resource: bin_gpdb_ubuntu18.04
passed: [compile_gpdb_ubuntu18.04]
trigger: [[ test_trigger ]]
- get: ccp_src
- put: terraform
params:
<<: *ccp_default_params
vars:
<<: *ccp_default_vars
PLATFORM: ubuntu18.04
[[ test.additional_ccp_vars ]]
- task: gen_cluster
file: ccp_src/ci/tasks/gen_cluster.yml
params:
<<: *ccp_gen_cluster_default_params
PLATFORM: ubuntu18.04
- task: gpinitsystem
file: ccp_src/ci/tasks/gpinitsystem.yml
- task: [[ test.name ]]_concourse_cluster_tests
file: gpdb_src/concourse/tasks/run_behave_on_ccp_cluster.yml
image: gpdb6-ubuntu18.04-test
params:
BEHAVE_FLAGS: --tags=[[ test.name ]] --tags=concourse_cluster
on_success:
<<: *ccp_destroy
ensure:
<<: *set_failed
{% endif %}
- do:
- get: bin_gpdb_ubuntu18.04
resource: bin_gpdb_ubuntu18.04
passed: [compile_gpdb_ubuntu18.04]
trigger: [[ test_trigger ]]
- task: [[ test.name ]]_demo_cluster_tests
file: gpdb_src/concourse/tasks/behave_gpdb.yml
image: gpdb6-ubuntu18.04-test
input_mapping:
bin_gpdb: bin_gpdb_ubuntu18.04
params:
BEHAVE_FLAGS: --tags=[[ test.name ]] --tags=~concourse_cluster,demo_cluster
{% endfor %}
- name: combine_cli_coverage
......@@ -1881,6 +1938,7 @@ jobs:
- gpperfmon_centos7
{% for test in CLI_BEHAVE_TESTS %}
- [[ test.name ]]
- [[ test.name ]]_ubuntu18
{% endfor %}
## - madlib_build_gppkg
## - MADlib_Test_orca_centos6
......@@ -1929,6 +1987,9 @@ jobs:
- compile_gpdb_ubuntu18.04
- icw_gporca_ubuntu18.04
- icw_planner_ubuntu18.04
{% for test in CLI_BEHAVE_TESTS %}
- [[ test.name ]]_ubuntu18
{% endfor %}
- get: bin_gpdb_clients_ubuntu18.04
passed:
- compile_gpdb_ubuntu18.04
......
......@@ -68,6 +68,9 @@ function install_python_hacks() {
# fix this later, but it's not available on all platforms.
if which yum > /dev/null; then
yum install -y patchelf
elif which apt > /dev/null; then
apt update
apt install patchelf
else
set +x
echo "ERROR: install_python_hacks() doesn't support the current platform and should be modified"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册