Adding databse sample injection

This commit is contained in:
Jean-Marie Renouard 2018-09-22 05:34:57 +00:00
parent fe8a3e0e6e
commit a1f988da02

View file

@ -4,40 +4,39 @@ language: perl
perl: perl:
- "5.24" - "5.24"
- "5.22" - "5.22"
- "5.20" - "5.20"
- "5.18" - "5.18"
- "5.16" - "5.16"
- "5.14" - "5.14"
- "5.12" - "5.12"
- "5.10" - "5.10"
# - "5.8"
matrix: matrix:
include: include:
- addons: - addons:
mariadb: "5.5" mariadb: "5.5"
perl: "5.20" perl: "5.24"
- addons: - addons:
mariadb: "10.0" mariadb: "10.0"
perl: "5.20" perl: "5.24"
- addons: - addons:
mariadb: "10.1" mariadb: "10.1"
perl: "5.20" perl: "5.24"
- addons: - addons:
mariadb: "10.2" mariadb: "10.2"
perl: "5.20" perl: "5.24"
- addons: - addons:
mysql: "5.5" mysql: "5.5"
perl: "5.20" perl: "5.24"
- addons: - addons:
mysql: "5.6" mysql: "5.6"
perl: "5.20" perl: "5.24"
- addons: - addons:
mysql: "5.7" mysql: "5.7"
perl: "5.20" perl: "5.24"
- addons: - addons:
mysql: "8" mysql: "8"
perl: "5.20" perl: "5.24"
before_install: before_install:
- git clone git://github.com/haarg/perl-travis-helper - git clone git://github.com/haarg/perl-travis-helper
@ -54,7 +53,11 @@ install:
before_script: before_script:
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf - echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
- chmod 600 .my.cnf - chmod 600 .my.cnf
- wget "https://launchpad.net/test-db/employees-db-1/1.0.6/+download/employees_db-full-1.0.6.tar.bz2"
- tar xvjf employees_db-full-1.0.6.tar.bz2
- cd employees_db
- cat employees.sql | mysql
script: script:
- perlcritic --exclude InputOutput::ProhibitInteractiveTest mysqltuner.pl - perlcritic --exclude InputOutput::ProhibitInteractiveTest mysqltuner.pl
- ./mysqltuner.pl --verbose --tbstat - ./mysqltuner.pl --verbose --tbstat