You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added tests now include php 7.2 and MariaDb 10.3
Added truncate table test (#37)
Added MariaDb events ids to const
Added filtering dummy events generated by MariaDB
Added missing throws in BasicTest
Copy file name to clipboardExpand all lines: .travis.yml
+10-9
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,11 @@ php:
6
6
- 5.6
7
7
- 7.0
8
8
- 7.1
9
+
- 7.2
9
10
env:
10
11
- DB=mysql57
11
12
- DB=mysql56
13
+
- DB=mariadb
12
14
13
15
cache:
14
16
apt: true
@@ -20,25 +22,23 @@ sudo: required
20
22
21
23
before_script:
22
24
- "sudo /etc/init.d/mysql stop || true"
23
-
- "sudo apt-get remove mysql* -y"
25
+
- "sudo apt-get remove mysql* -y --purge"
24
26
- "if [ $DB = 'mysql57' ]; then echo deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7 | sudo tee /etc/apt/sources.list.d/mysql.list; sudo apt-get update; sudo apt-get install mysql-server -y --allow-unauthenticated; fi"
25
27
- "if [ $DB = 'mysql56' ]; then echo deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.6 | sudo tee /etc/apt/sources.list.d/mysql.list; sudo apt-get update; sudo apt-get install mysql-server -y --allow-unauthenticated; fi"
26
-
- "sudo mysql_upgrade"
28
+
- "if [ $DB = 'mariadb' ]; then sudo rm -rf /var/lib/mysql /etc/mysql; echo deb http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.3/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/mysql.list; sudo apt-get update; sudo apt-get install mariadb-server-10.3 -y --allow-unauthenticated; fi"
29
+
- "sudo mysql_upgrade --force"
27
30
28
31
# Config
29
32
- "echo '[mysqld]' | sudo tee /etc/mysql/conf.d/replication.cnf"
30
33
- "echo 'log-bin=mysql-bin' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
31
34
- "echo 'server-id=1' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
32
35
- "echo 'binlog-format = row' | sudo tee -a /etc/mysql/conf.d/replication.cnf"
36
+
- "cat /etc/mysql/conf.d/replication.cnf"
33
37
34
-
# Enable GTID
35
-
- "echo '[mysqld]' | sudo tee /etc/mysql/conf.d/gtid.cnf"
36
-
- "echo 'gtid_mode=ON' | sudo tee -a /etc/mysql/conf.d/gtid.cnf"
37
-
- "echo 'enforce_gtid_consistency' | sudo tee -a /etc/mysql/conf.d/gtid.cnf"
38
-
- "echo 'binlog_format=ROW' | sudo tee -a /etc/mysql/conf.d/gtid.cnf"
39
-
- "echo 'log_slave_updates' | sudo tee -a /etc/mysql/conf.d/gtid.cnf"
38
+
# Enable GTID (only for mysql 5.*)
39
+
- "if [ $DB != 'mariadb' ]; then echo '[mysqld]' | sudo tee /etc/mysql/conf.d/gtid.cnf; echo 'gtid_mode=ON' | sudo tee -a /etc/mysql/conf.d/gtid.cnf; echo 'enforce_gtid_consistency' | sudo tee -a /etc/mysql/conf.d/gtid.cnf; echo 'binlog_format=ROW' | sudo tee -a /etc/mysql/conf.d/gtid.cnf; echo 'log_slave_updates' | sudo tee -a /etc/mysql/conf.d/gtid.cnf; cat /etc/mysql/conf.d/gtid.cnf; fi"
40
40
41
-
# Start mysql (avoid errors to have logs)
41
+
# Start mysql (avoid errors to have logs)/var/lib/mysql
42
42
- "sudo /etc/init.d/mysql restart || true"
43
43
- "sudo tail -1000 /var/log/syslog"
44
44
@@ -49,6 +49,7 @@ before_script:
49
49
50
50
- if [ $DB = 'mysql56' ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root; fi
51
51
- if [ $DB = 'mysql57' ]; then echo "USE mysql;\nUPDATE user SET authentication_string=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root; fi
52
+
- if [ $DB = 'mariadb' ]; then echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE User='root';\nFLUSH PRIVILEGES;\n" | mysql -u root; fi
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
# Release Notes
4
4
5
+
## v5.0.1 (2018-05-29)
6
+
- Added tests now include php 7.2 and MariaDb 10.3
7
+
- Added truncate table test (#37)
8
+
- Added MariaDb events ids to const
9
+
- Added filtering dummy events generated by MariaDB
10
+
- Added missing throws in BasicTest
11
+
5
12
## v5.0.0 (2018-04-27)
6
13
- Removed unused classes from code and merged some classes to one class
7
14
- Added ability in MySQLReplicationFactory to provide implementations interfaces in constructor. This will give ability to replace default classes to your own
0 commit comments