Enable MySQL tests on FreeBSD.

This commit is contained in:
Matt Clay 2017-02-14 11:45:32 -08:00
parent c5446d95cc
commit 9389fafae8
5 changed files with 24 additions and 3 deletions

View file

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

View file

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

View file

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

View file

@ -41,5 +41,24 @@
with_items: "{{mysql_packages}}"
when: ansible_pkg_mgr == 'apt'
- name: install mysqldb_test FreeBSD dependencies
pkgng:
name: "{{ item }}"
state: present
with_items: "{{mysql_packages}}"
when: ansible_os_family == "FreeBSD"
- name: install mysql-python package via pip (FreeBSD)
pip:
name: mysql-python
state: present
when: ansible_os_family == "FreeBSD"
- name: enable mysql-server service (FreeBSD)
lineinfile:
path: /etc/rc.conf
line: 'mysql_server_enable="YES"'
when: ansible_os_family == "FreeBSD"
- name: start mysql_db service if not running
service: name={{ mysql_service }} state=started

View file

@ -0,0 +1,5 @@
mysql_service: 'mysql-server'
mysql_packages:
- mariadb101-server
- py27-mysql-connector-python2