Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Issue #2109: Disable AppArmor so Debian tests can pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Nov 24, 2020
1 parent 48f3a73 commit 218e350
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,16 @@ jobs:

# PHP 7.3
# local_config: tests/ubuntu-18-php73.config.yml
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
# TEST_INSTALLED_EXTRAS: false
# - distro: ubuntu1804
# playbook: php-7.3.yml
# playbook: TODO

# Postgresql
# local_config: tests/ubuntu-18-postgresql.config.yml
# DRUSH_BIN: "${DRUPALVM_DIR}/drupal/vendor/bin/drush"
# config_dir: /var/www/drupalvm/config
# TEST_INSTALLED_EXTRAS: false
# - distro: ubunt1804
# playbook: postgresql.yml
# playbook: TODO

steps:
- name: Check out the codebase.
Expand All @@ -79,6 +77,15 @@ jobs:
- name: Install test dependencies.
run: pip3 install ansible molecule[docker] docker

# See: https://github.com/geerlingguy/ansible-role-mysql/issues/422
- name: Disable AppArmor on Debian.
run: |
set -x
sudo apt-get install apparmor-profiles
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
if: ${{ startsWith(matrix.distro, 'debian') }}

- name: Copy test scaffold files into place.
run: |
cp example.drupal.make.yml drupal.make.yml
Expand Down

0 comments on commit 218e350

Please sign in to comment.