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)