Mercurial > p > roundup > code
diff .travis.yml @ 6614:e9dc8e526dd0
Remove fix for old mysql bug; try to improve postgresql perf
Supposedly mysql bug that causes
test_mysql.mysqlDBTest.testFilteringSpecialChars to fail was fixed in
8.0.1 in 2017: https://bugs.mysql.com/bug.php?id=74901
Also disable fsync for postgres as we prefer speed to durability of
data when running test suite. Need to find correct path for
postgrsql.conf, so ls command added as well.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 12 Feb 2022 00:50:02 -0500 |
| parents | 27a4ab499189 |
| children | 36ccdf0eff8d |
line wrap: on
line diff
--- a/.travis.yml Mon Feb 07 22:52:03 2022 -0500 +++ b/.travis.yml Sat Feb 12 00:50:02 2022 -0500 @@ -117,14 +117,13 @@ - sudo service mysql restart - mysql -u root -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' + # Disable fsync for speed, don't care about data durability when testing + - echo "fsync = off" >> /etc/postgresql/*/*/postgresql.conf + - ls /etc/postgres - sudo service postgresql restart; sleep 30 # set up postgresql database - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres - # HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901 - # needed for test_mysql.mysqlDBTest.testFilteringSpecialChars - - sed -i 's/CREATE DATABASE \%s/CREATE DATABASE \%s COLLATE utf8_general_ci/' roundup/backends/back_mysql.py - # build the .mo translation files and install them into a tree # (locale/locale under roundup directory root) # suitable for use by gettext.
