[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
|
- pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl
|
||||||
- bash ./install.sh
|
- 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"
|
- name: "sdist install under Ubuntu: gcc-8"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@ -93,3 +78,16 @@ matrix:
|
|||||||
- python setup.py sdist
|
- python setup.py sdist
|
||||||
- pip install dist/`ls dist`
|
- 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: {
|
||||||
"driver": "sqlite",
|
"driver": "sqlite",
|
||||||
"database": "test_db.db",
|
"database": "test_db.db",
|
||||||
},
|
}
|
||||||
|
}
|
||||||
|
if 'VNPY_TEST_ONLY_SQLITE' not in os.environ:
|
||||||
|
profiles.update({
|
||||||
Driver.MYSQL: {
|
Driver.MYSQL: {
|
||||||
"driver": "mysql",
|
"driver": "mysql",
|
||||||
"database": os.environ['VNPY_TEST_MYSQL_DATABASE'],
|
"database": os.environ['VNPY_TEST_MYSQL_DATABASE'],
|
||||||
@ -41,7 +44,7 @@ profiles = {
|
|||||||
"password": "",
|
"password": "",
|
||||||
"authentication_source": "",
|
"authentication_source": "",
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
|
|
||||||
def now():
|
def now():
|
||||||
|
Loading…
Reference in New Issue
Block a user