[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
|
- postgresql
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- psql -d postgresql://postgres:@localhost -c "create database vnpy;"
|
||||||
- mysql -e 'CREATE DATABASE vnpy;'
|
- mysql -e 'CREATE DATABASE vnpy;'
|
||||||
- psql -c 'create database vnpy;' -U postgres
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# todo: use python unittest
|
# todo: use python unittest
|
||||||
|
@ -25,7 +25,7 @@ def main():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
result = main()
|
result = main()
|
||||||
if result.failures:
|
if result.failures or result.errors:
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
exit(0)
|
exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user