Skip to content

Commit 82049a9

Browse files
committed
Move mysql grant after the manipulation on the db. This verifies the
db is up. Re-enabled testing on other python versions.
1 parent 8597246 commit 82049a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: python
22
python:
33
- 2.7
4-
# - 3.4
5-
# - 3.5
6-
# - 3.6
4+
- 3.4
5+
- 3.5
6+
- 3.6
77

88
sudo: false
99

@@ -70,11 +70,10 @@ install:
7070

7171
before_script:
7272
# set up mysql database
73-
- mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
74-
- cat /etc/mysql/my.cnf
7573
- sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
7674
- cat /etc/mysql/my.cnf
7775
- sudo service mysql restart
76+
- mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'
7877

7978
# set up postgresql database
8079
- psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres

0 commit comments

Comments
 (0)