[Add] run tests under osx
This commit is contained in:
parent
8ebcf984e3
commit
98c677118a
28
.travis.yml
28
.travis.yml
@ -49,21 +49,6 @@ matrix:
|
||||
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
|
||||
- bash ./install.sh
|
||||
|
||||
- name: "pip install under osx"
|
||||
os: osx
|
||||
language: shell # osx supports only shell
|
||||
services: []
|
||||
before_install: []
|
||||
install:
|
||||
- pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
|
||||
- bash ./install_osx.sh
|
||||
before_script: []
|
||||
script:
|
||||
- pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment
|
||||
- cd tests; source travis_env.sh;
|
||||
# osx is complicated for me, skip the tests
|
||||
# python3 test_all.py
|
||||
|
||||
- name: "sdist install under Ubuntu: gcc-8"
|
||||
addons:
|
||||
apt:
|
||||
@ -93,3 +78,16 @@ matrix:
|
||||
- python setup.py sdist
|
||||
- pip install dist/`ls dist`
|
||||
|
||||
- name: "pip install under osx"
|
||||
os: osx
|
||||
language: shell # osx supports only shell
|
||||
services: []
|
||||
before_install: []
|
||||
install:
|
||||
- pip3 install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
|
||||
- bash ./install_osx.sh
|
||||
before_script: []
|
||||
script:
|
||||
- pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment
|
||||
- cd tests; source travis_env.sh;
|
||||
- VNPY_TEST_ONLY_SQLITE=1 python3 test_all.py
|
||||
|
@ -15,7 +15,10 @@ profiles = {
|
||||
Driver.SQLITE: {
|
||||
"driver": "sqlite",
|
||||
"database": "test_db.db",
|
||||
},
|
||||
}
|
||||
}
|
||||
if 'VNPY_TEST_ONLY_SQLITE' not in os.environ:
|
||||
profiles.update({
|
||||
Driver.MYSQL: {
|
||||
"driver": "mysql",
|
||||
"database": os.environ['VNPY_TEST_MYSQL_DATABASE'],
|
||||
@ -41,7 +44,7 @@ profiles = {
|
||||
"password": "",
|
||||
"authentication_source": "",
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
def now():
|
||||
|
Loading…
Reference in New Issue
Block a user