You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
psql -d postgresql://postgres@localhost/circle_test -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';"
34
+
mysql -h 127.0.0.1 -u root -e "CREATE USER 'rounduptest'@'127.0.0.1' IDENTIFIED BY 'rounduptest'; GRANT ALL ON rounduptest.* TO 'rounduptest'@'127.0.0.1';"
35
+
# patch host to 127.0.0.1 to force TCP connection to MySQL
36
+
sed -i -e 's/\(config[.]RDBMS_HOST =\) "localhost"/\1 "127.0.0.1"/' test/db_test_base.py
37
+
38
+
- run:
39
+
name: run tests
40
+
command: |
41
+
py.test-3 -v test/ --cov=roundup
42
+
environment:
43
+
MYSQL_HOST: 127.0.0.1
44
+
45
+
- run:
46
+
name: run coverage
47
+
command: |
48
+
python3-coverage html -i
49
+
50
+
- store_artifacts:
51
+
path: htmlcov
52
+
destination: roundup-ubuntu
53
+
54
+
ubuntu-old:
4
55
docker:
5
56
- image: circleci/buildpack-deps:18.04
6
57
@@ -34,9 +85,6 @@ jobs:
34
85
mysql -h 127.0.0.1 -u root -e "GRANT ALL ON rounduptest.* TO rounduptest@'127.0.0.1' IDENTIFIED BY \"rounduptest\";"
35
86
# patch host to 127.0.0.1 to force TCP connection to MySQL
36
87
sed -i -e 's/\(config[.]RDBMS_HOST =\) "localhost"/\1 "127.0.0.1"/' test/db_test_base.py
37
-
# HACK: workaround mysql bug: http://bugs.mysql.com/bug.php?id=74901
38
-
# needed for test_mysql.mysqlDBTest.testFilteringSpecialChars
0 commit comments