Move requirements into tests. (#35885)

This commit is contained in:
Matt Clay 2018-02-10 10:48:44 -08:00 committed by GitHub
commit e7b793c8c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 58 additions and 26 deletions

View file

@ -16,6 +16,22 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
- include_vars: '{{ item }}'
with_first_found:
- files:
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml'
- '{{ ansible_os_family }}.yml'
- 'default.yml'
paths: '../vars'
- name: install dependencies for test
package: name={{ package_item }} state=present
with_items: "{{ test_packages }}"
loop_control:
loop_var: package_item
when: ansible_distribution != "MacOSX"
- name: remove a gem
gem: name=gist state=absent

View file

@ -0,0 +1,3 @@
test_packages:
- "devel/ruby-gems"
- "ruby"

View file

@ -0,0 +1,2 @@
test_packages:
- "rubygems"

View file

@ -0,0 +1 @@
test_packages: []