added windows and osx tests

This commit is contained in:
Shay Palachy
2019-07-13 14:56:03 +03:00
parent 998233b97b
commit 7afd0cd4f4
2 changed files with 27 additions and 6 deletions
+25 -6
View File
@@ -8,19 +8,38 @@ matrix:
- python: 3.7
dist: xenial
sudo: true
- name: "Python 3.7.2 on macOS"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
# - os: osx
# language: minimal
# install: pip3 install -e .[tests]
- name: "Python 3.7.3 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install codecov
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script:
- python -m pytest
- python -m codecov
before_install:
# coverage submission packages
- pip install -U pip
- pip install -U pytest
- pip install codecov
- pip install pymongo
- pip3 install -U pip
- pip3 install -U pytest
- pip3 install codecov
- pip3 install pymongo
install:
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install coverage pytest-cov .; else pip install ".[test]"; fi
script: python -m pytest --cov=cachier
script: python3 -m pytest
# submit coverage
after_success:
# - coveralls
- codecov
- python3 -m codecov
# deploy:
# provider: pypi
# user: shaypal5
+2
View File
@@ -29,4 +29,6 @@ norecursedirs=dist build .tox
addopts =
# --doctest-modules
--cov=cachier
-r a
-v