forked from ifsnop/mysqldump-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable matrix in travis to test also php v5.3&5.2 with ubuntu precise
- Loading branch information
Showing
1 changed file
with
261 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,268 @@ | ||
dist: trusty | ||
sudo: required | ||
group: deprecated-2017Q4 | ||
|
||
language: php | ||
|
||
php: | ||
- 7.2 | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
# - 5.3 | ||
- hhvm | ||
- nightly | ||
dist: trusty | ||
group: deprecated-2017Q4 | ||
|
||
matrix: | ||
allow_failures: | ||
- php: nightly | ||
- php: hhvm | ||
include: | ||
- os: linux | ||
sudo: required | ||
php: | ||
- nightly | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- 7.2 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- 7.1 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- 7.0 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- 5.6 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- 5.4 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- hhvm-3.18 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
- os: linux | ||
sudo: required | ||
php: | ||
- hhvm-nightly | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
addons: | ||
apt: | ||
sources: | ||
- mysql-5.7-trusty | ||
packages: | ||
- mysql-server | ||
- mysql-client | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
- sudo mysql_upgrade -u root | ||
- sudo service mysql restart | ||
|
||
services: | ||
- mysql | ||
- os: linux | ||
dist: precise | ||
sudo: required | ||
php: | ||
- 5.3 | ||
services: | ||
- mysql | ||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
|
||
before_script: | ||
- curl -s http://getcomposer.org/installer | php | ||
- php composer.phar install | ||
- sudo service mysql stop || echo "mysql 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 mysqladmin shutdown | ||
- sleep 1 | ||
- sudo service mysql start | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
- os: linux | ||
dist: precise | ||
sudo: required | ||
php: | ||
- 5.2 | ||
services: | ||
- mysql | ||
before_script: | ||
- mysql -V | ||
- mysqldump -V | ||
- tests/create_users.sh | ||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
before_install: | ||
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
|
||
script: | ||
- php -l src/Ifsnop/Mysqldump/Mysqldump.php | ||
- php src/Ifsnop/Mysqldump/Mysqldump.php | ||
- cd tests && ./test.sh | ||
allow_failures: | ||
- php: 5.2 | ||
- php: 5.3 | ||
- php: hhvm-nightly | ||
- php: nightly | ||
- php: hhvm-3.18 |