mirror of
https://github.com/wassname/cachier.git
synced 2026-09-10 11:50:23 +08:00
added windows and osx tests
This commit is contained in:
+25
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user