Skip to content

Commit 7079891

Browse files
committed
(CONT-1203) - Fixing CI pipeline for Debian & Ubuntu-20
1 parent 3f8ece0 commit 7079891

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ jobs:
7171
bundle env
7272
7373
- name: "Disable mysqld apparmor profile"
74-
if: matrix.platforms.provider == 'provision::docker'
75-
run: |
74+
if: ${{matrix.platforms.provider == 'docker'}}
75+
run: |
7676
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
7777
sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
78+
sudo systemctl disable apparmor
79+
sudo systemctl stop apparmor
7880
7981
- name: Provision test environment
8082
run: |
@@ -99,4 +101,3 @@ jobs:
99101
continue-on-error: true
100102
run: |
101103
bundle exec rake 'litmus:tear_down'
102-

.github/workflows/nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ jobs:
7070
bundle env
7171
7272
- name: "Disable mysqld apparmor profile"
73-
if: matrix.platforms.provider == 'provision::docker'
73+
if: ${{matrix.platforms.provider == 'docker'}}
7474
run: |
7575
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
7676
sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
77+
sudo systemctl disable apparmor
78+
sudo systemctl stop apparmor
7779
7880
- name: Provision test environment
7981
run: |
@@ -98,4 +100,3 @@ jobs:
98100
continue-on-error: true
99101
run: |
100102
bundle exec rake 'litmus:tear_down'
101-

spec/spec_helper_acceptance_local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def mysql_version
1111
shell_output = LitmusHelper.instance.run_shell('mysql --version', expect_failures: true)
1212
if shell_output.stdout.match(%r{\d+\.\d+\.\d+}).nil?
1313
# mysql is not yet installed, so we apply this class to install it
14-
LitmusHelper.instance.apply_manifest('include mysql::server', debug: true, catch_failures: true)
14+
LitmusHelper.instance.apply_manifest('include mysql::server', catch_failures: true)
1515
shell_output = LitmusHelper.instance.run_shell('mysql --version')
1616
raise _('unable to get mysql version') if shell_output.stdout.match(%r{\d+\.\d+\.\d+}).nil?
1717
end

0 commit comments

Comments
 (0)