Skip to content

Commit

Permalink
new mysql install options
Browse files Browse the repository at this point in the history
  • Loading branch information
ifsnop committed Oct 9, 2018
1 parent c4da8fa commit ef8d414
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ services:
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
Expand All @@ -48,3 +34,16 @@ 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
6 changes: 3 additions & 3 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ echo test $index diff mysqldump_test013.filtered.sql mysqldump-php_test013.filte
diff mysqldump_test013.filtered.sql mysqldump-php_test013.filtered.sql
ret[((index++))]=$?

rm *.checksum 2> /dev/null
rm *.filtered.sql 2> /dev/null
rm mysqldump* 2> /dev/null
#rm *.checksum 2> /dev/null
#rm *.filtered.sql 2> /dev/null
#rm mysqldump* 2> /dev/null

echo "Done $index tests"

Expand Down

0 comments on commit ef8d414

Please sign in to comment.