[Mod] psql: use connection string

[Mod] test_all.py: return 1 if errors
This commit is contained in:
nanoric 2019-04-15 00:22:21 -04:00
parent 7d2692cbb6
commit 080f0cc131
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)