forked from major/MySQLTuner-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
176 lines (166 loc) · 3.69 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
sudo: false
language: perl
matrix:
include:
- addons:
mariadb: "5.5"
name: "MariaDB 5.5/Perl 5.24"
perl: "5.24"
- addons:
mariadb: "10.0"
name: "MariaDB 10.0/Perl 5.24"
perl: "5.24"
- addons:
mariadb: "10.1"
name: "MariaDB 10.1/Perl 5.24"
perl: "5.24"
- addons:
mariadb: "10.2"
name: "MariaDB 10.2/Perl 5.24"
perl: "5.24"
- addons:
mariadb: "10.3"
name: "MariaDB 10.3/Perl 5.24"
perl: "5.24"
- addons:
mysql: "5.5"
name: "MySQL 5.5/Perl 5.24"
perl: "5.24"
- addons:
mysql: "5.6"
name: "MySQL 5.6/Perl 5.24"
perl: "5.24"
- addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 5.7/Perl 5.24"
perl: "5.24"
- addons:
apt:
sources:
- mysql-8.0-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 8/Perl 5.24"
perl: "5.24"
- addons:
mariadb: "5.5"
name: "MariaDB 5.5/Perl 5.16"
perl: "5.16"
- addons:
mariadb: "10.0"
name: "MariaDB 10.0/Perl 5.16"
perl: "5.16"
- addons:
mariadb: "10.1"
name: "MariaDB 10.1/Perl 5.16"
perl: "5.16"
- addons:
mariadb: "10.2"
name: "MariaDB 10.2/Perl 5.16"
perl: "5.16"
- addons:
mariadb: "10.3"
name: "MariaDB 10.3/Perl 5.16"
perl: "5.16"
- addons:
mysql: "5.5"
name: "MySQL 5.5/Perl 5.16"
perl: "5.16"
- addons:
mysql: "5.6"
name: "MySQL 5.6/Perl 5.16"
perl: "5.16"
- addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 5.7/Perl 5.16"
perl: "5.16"
- addons:
apt:
sources:
- mysql-8.0-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 8/Perl 5.16"
perl: "5.16"
- addons:
mariadb: "5.5"
name: "MariaDB 5.5/Perl 5.10"
perl: "5.10"
- addons:
mariadb: "10.0"
name: "MariaDB 10.0/Perl 5.10"
perl: "5.10"
- addons:
mariadb: "10.1"
name: "MariaDB 10.1/Perl 5.10"
perl: "5.10"
- addons:
mariadb: "10.2"
name: "MariaDB 10.2/Perl 5.10"
perl: "5.10"
- addons:
mariadb: "10.3"
name: "MariaDB 10.3/Perl 5.10"
perl: "5.10"
- addons:
mysql: "5.5"
name: "MySQL 5.5/Perl 5.10"
perl: "5.10"
- addons:
mysql: "5.6"
name: "MySQL 5.6/Perl 5.10"
perl: "5.10"
- addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 5.7/Perl 5.10"
perl: "5.10"
- addons:
apt:
sources:
- mysql-8.0-trusty
packages:
- mysql-server
- mysql-client
name: "MySQL 8/Perl 5.10"
perl: "5.10"
before_install:
- git clone git://github.com/haarg/perl-travis-helper
- source perl-travis-helper/init
- build-perl
- perl -V
install:
- cpanm --quiet --notest Data::Dumper
- cpanm --quiet --notest JSON
- cpanm --quiet --notest Perl::Critic
- cpanm --quiet --notest Text::Template
before_script:
- echo -e "[client]\nuser=root\npassword=\"\"" > .my.cnf
- chmod 600 .my.cnf
- git clone https://github.com/datacharmer/test_db.git
- cd test_db
- cat employees.sql | grep -v 'storage_engine' | mysql
- cd ..
script:
- perlcritic --exclude InputOutput::ProhibitInteractiveTest mysqltuner.pl
- ./mysqltuner.pl --verbose --tbstat 2>stderr.txt | tee -a "stdout.txt"
after_script:
- echo "Standard Output: $(cat stdout.txt)"
- echo "Standard Error : $(cat stderr.txt)"
- [ "0" = "$(wl -l stderr.txt)" ] || exit 2