diff --git a/.travis.yml b/.travis.yml index c7dd66d..8143b72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tox.ini b/tox.ini index 87e57ba..e9ddaeb 100644 --- a/tox.ini +++ b/tox.ini @@ -29,4 +29,6 @@ norecursedirs=dist build .tox addopts = # --doctest-modules --cov=cachier + -r a + -v