[Mod] psql: use connection string
[Mod] test_all.py: return 1 if errors
This commit is contained in:
parent
7d2692cbb6
commit
080f0cc131
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user