From 080f0cc1311c06af1e9a1b928d719bcb1df5d83c Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 15 Apr 2019 00:22:21 -0400 Subject: [PATCH] [Mod] psql: use connection string [Mod] test_all.py: return 1 if errors --- .travis.yml | 2 +- tests/test_all.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b455829..6224b4a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,8 @@ services: - postgresql before_script: + - psql -d postgresql://postgres:@localhost -c "create database vnpy;" - mysql -e 'CREATE DATABASE vnpy;' - - psql -c 'create database vnpy;' -U postgres script: # todo: use python unittest diff --git a/tests/test_all.py b/tests/test_all.py index e5f8b6c2..59b7683e 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -25,7 +25,7 @@ def main(): if __name__ == '__main__': result = main() - if result.failures: + if result.failures or result.errors: exit(1) else: exit(0)