Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e027812

Browse files
authored
Update travis config (PyMySQL#595)
1 parent af73b03 commit e027812

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.travis.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,49 @@
11
sudo: required
2-
dist: trusty
32
language: python
43
python:
54
- "3.7-dev"
65
- "3.6"
7-
- "2.6"
8-
- "pypy3.3-5.2-alpha1"
96

107
cache: pip
118

129
matrix:
1310
include:
1411
- addons:
15-
mariadb: 5.5
12+
mariadb: 5.5
1613
python: "3.5"
1714

1815
- addons:
19-
mariadb: 10.0
16+
mariadb: 10.1
2017
python: "pypy"
2118

2219
- addons:
23-
mariadb: 10.1
20+
mariadb: 10.2
2421
python: "2.7"
2522

2623
- env:
27-
- DB=5.6.35
24+
- DB=5.6.37
25+
python: "3.3"
2826
addons:
2927
apt:
3028
packages:
3129
- libaio-dev
32-
python: "3.3"
30+
- libnuma-dev
3331

3432
- env:
35-
- DB=5.7.17
33+
- DB=5.7.19
34+
python: "3.4"
3635
addons:
3736
apt:
3837
packages:
3938
- libaio-dev
40-
python: "3.4"
39+
- libnuma-dev
4140

4241

4342

4443
# different py version from 5.6 and 5.7 as cache seems to be based on py version
4544
# http://dev.mysql.com/downloads/mysql/5.7.html has latest development release version
4645
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
4746
install:
48-
- if [ -n "${EXTRAPKG}" ]; then
49-
sudo apt-get install ${EXTRAPKG};
50-
fi
5147
- export PASSWORD=travis;
5248
- pip install -U coveralls unittest2 coverage
5349

.travis/initializedb.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ if [ ! -z "${DB}" ]; then
99
# disable existing database server in case of accidential connection
1010
mysql -u root -e 'drop user travis@localhost; drop user root@localhost; drop user travis; create user super@localhost; grant all on *.* to super@localhost with grant option'
1111
mysql -u super -e 'drop user root'
12-
F=mysql-${DB}-linux-glibc2.5-x86_64
12+
13+
F=mysql-${DB}-linux-glibc2.12-x86_64
1314
mkdir -p ${HOME}/mysql
1415
P=${HOME}/mysql/${F}
1516
if [ ! -d "${P}" ]; then
16-
wget http://cdn.mysql.com/Downloads/MySQL-${DB%.*}/${F}.tar.gz -O - | tar -zxf - --directory=${HOME}/mysql
17+
wget https://cdn.mysql.com//Downloads/MySQL-${DB%.*}/${F}.tar.gz -O - | tar -zxf - --directory=${HOME}/mysql
1718
fi
1819
if [ -f "${P}"/my.cnf ]; then
1920
O="--defaults-file=${P}/my.cnf"
@@ -37,9 +38,10 @@ if [ ! -z "${DB}" ]; then
3738
openssl rsa -in "${P}"/private_key.pem -pubout -out "${P}"/public_key.pem
3839
${P}/bin/mysqld_safe ${O} --ledir=/ --mysqld=${P}/bin/mysqld --datadir=${HOME}/db-${DB} --socket=/tmp/mysql.sock --port 3307 --innodb-buffer-pool-size=200M --lc-messages-dir=${P}/share --plugin-dir=${P}/lib/plugin/ --log-error=/tmp/mysql.err &
3940
while [ ! -S /tmp/mysql.sock ]; do
40-
sleep 2
41+
sleep 3
42+
tail /tmp/mysql.err
4143
done
42-
cat /tmp/mysql.err
44+
tail /tmp/mysql.err
4345
if [ ! -z "${PASSWD}" ]; then
4446
${P}/bin/mysql -S /tmp/mysql.sock -u root -p"${PASSWD}" --connect-expired-password -e "SET PASSWORD = PASSWORD('')"
4547
fi

0 commit comments

Comments
 (0)