2018-02-12 06:42:55 +00:00
|
|
|
- hosts: all
|
|
|
|
tasks:
|
|
|
|
- shell:
|
|
|
|
cmd: |
|
|
|
|
set -e
|
|
|
|
set -x
|
2018-03-27 07:52:33 +00:00
|
|
|
if [ "{{ puppet_gem_version }}" != "latest" ]; then
|
2019-01-25 08:55:17 +00:00
|
|
|
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}'
|
2018-03-27 07:52:33 +00:00
|
|
|
fi
|
2018-11-20 00:49:44 +00:00
|
|
|
# TODO(tobias-urdin): Remove when we dont pin rspec-puppet
|
|
|
|
export RSPEC_PUPPET_VERSION='{{ rspec_puppet_version }}'
|
2019-04-23 23:26:11 +00:00
|
|
|
# NOTE(aschultz): rspec-puppet 2.4+ has strict variables enabled
|
|
|
|
# which causes test failures. The problem is that the puppet modules
|
|
|
|
# have never worked with strict_variables = true due to backwards
|
|
|
|
# compatibility & import ordering. Since this has not been true,
|
|
|
|
# lets disable it in the unit testing for now. Perhaps some day
|
|
|
|
# we will be able to turn this back to true.
|
|
|
|
export STRICT_VARIABLES=no
|
2018-02-12 06:42:55 +00:00
|
|
|
./run_unit_tests.sh
|
|
|
|
executable: /bin/bash
|
|
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|