puppet-openstack-integration/playbooks/run-litmus-tests.yaml
Takashi Kajinami b033cd2f92 Replace the remaning usage of gem --no-ri and --no-rdoc
This change replaces the remaining usage of --no-iro and --no-rdoc
with --no-document, because these two options are no longer valid
in the later version especially available in Ubuntu Focal.

[1] ddb24d6a06

Change-Id: I42d7e2b5f3ab8ae9e020fa9f1ec6e355431e4814
2021-03-18 21:32:36 +09:00

33 lines
1.2 KiB
YAML

- hosts: all
tasks:
- name: Run Litmus
shell:
cmd: |
set -e
function trap_exit_sig() {
# NOTE(tobias-urdin): Litmus does not execute spec_clean rake task after a run.
$GEM_BIN_DIR/bundle exec rake spec_clean
{{ ansible_user_dir }}/workspace/puppet-openstack-integration/copy_logs.sh
}
trap trap_exit_sig EXIT
export CEPH_VERSION={{ ceph }}
if [ "{{ puppet_gem_version }}" != "latest" ]; then
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}'
fi
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
export GEM_BIN_DIR=$GEM_HOME/bin
ruby <<EOF
cmd = 'gem install bundler --no-document --verbose --no-user-install --bindir=${GEM_BIN_DIR}'
cmd += ' -v 2.2.11'
system(cmd)
EOF
$GEM_BIN_DIR/bundle install --without system_tests --retry 3
export RSPEC_DEBUG=true
$GEM_BIN_DIR/bundle exec rake litmus:acceptance:localhost
chdir: '{{ ansible_user_dir }}/workspace'
executable: /bin/bash
become: yes
environment: '{{ zuul | zuul_legacy_vars }}'