Skip to content

Commit

Permalink
Adding few fixes to the s390x Travis job
Browse files Browse the repository at this point in the history
  • Loading branch information
namrata-ibm authored and lawrinn committed Oct 14, 2021
1 parent 1fa6712 commit f4a891d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ matrix:
- env: SKYSQL_HA=true MAXSCALE_TEST_DISABLE=true
- os: linux
arch: s390x
dist: focal
include:
- os: linux
env: DB=mariadb:10.6
Expand Down Expand Up @@ -73,6 +74,7 @@ matrix:
env: DB=mysql:5.7
- os: linux
arch: s390x
dist: focal

script:
- if [[ "$DB" == build* ]] ; then .travis/build/build.sh; fi
Expand Down
10 changes: 8 additions & 2 deletions .travis/s390x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ set -x
set -e

DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y mariadb-server unixodbc-dev git cmake gcc libssl-dev tar curl libcurl4-openssl-dev libkrb5-dev

# Remove existing MySQL to allow installation of MariaDB
sudo service mysql stop
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
sudo apt purge -y mysql-server mysql-client mysql-common
sudo apt autoremove -y
echo "/usr/sbin/mysqld { }" | sudo tee /etc/apparmor.d/usr.sbin.mysqld
sudo apparmor_parser -v -R /etc/apparmor.d/usr.sbin.mysqld
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold mariadb-server unixodbc-dev git cmake gcc libssl-dev tar curl libcurl4-openssl-dev libkrb5-dev
sudo service mysql start
sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
sudo mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test;'
Expand Down

0 comments on commit f4a891d

Please sign in to comment.