From 9db37f762b383e5b6846fd5c81f60b1f9260338e Mon Sep 17 00:00:00 2001 From: Christian Loos Date: Mon, 29 Aug 2016 14:56:24 +0200 Subject: [PATCH] user before_script stage for creating .my.cnf file --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6294e4b..27a0c6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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