forked from ifsnop/mysqldump-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
dist: trusty
sudo: required
language: php
php:
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- 5.3
- hhvm
- nightly
services:
- mysql
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
- sudo service mysql stop || echo "mysql not stopped"
- sudo stop mysql-5.6 || echo "mysql-5.6 not stopped"
- echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
- wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
- sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
- sudo apt-get update -q
- sudo apt-get install -q -y --force-yes -o Dpkg::Options::=--force-confnew mysql-server
- sudo mysql_upgrade
- sudo service mysql stop || echo "mysql not stopped"
- sudo mysqld_safe --skip-grant-tables &
- sleep 4
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo kill -9 `sudo cat /var/lib/mysql/mysqld_safe.pid`
- sudo kill -9 `sudo cat /var/run/mysqld/mysqld.pid`
- sudo service mysql restart
- sleep 4
- mysql -V
- tests/create_users.sh
script:
- php src/Ifsnop/Mysqldump/Mysqldump.php
- cd tests && ./test.sh