user before_script stage for creating .my.cnf file

This commit is contained in:
Christian Loos 2016-08-29 14:56:24 +02:00
parent c18a52c22b
commit 9db37f762b

View file

@ -37,8 +37,9 @@ install:
- cpanm --quiet --notest Data::Dumper
- cpanm --quiet --notest Text::Template
- cpanm --quiet --notest JSON
script:
before_script:
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
- chmod 600 .my.cnf
- ./mysqltuner.pl --idxstat --dbstat
script: ./mysqltuner.pl --idxstat --dbstat