mirror of https://github.com/gsi-upm/senpy
add windows+mac tests in travis
parent
7ae493b3f3
commit
0f5bc514b7
@ -1,15 +1,43 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
services:
|
matrix:
|
||||||
- docker
|
allow_failures:
|
||||||
|
# Windows is experimental in Travis.
|
||||||
language: python
|
# As of this writing, senpy installs but hangs on tests that use the flask test client (e.g. blueprints)
|
||||||
|
- os: windows
|
||||||
env:
|
include:
|
||||||
- PYV=3.4
|
- os: linux
|
||||||
- PYV=3.5
|
language: python
|
||||||
- PYV=3.6
|
python: 3.4
|
||||||
- PYV=3.7
|
before_install:
|
||||||
# - PYV=3.3 # Apt fails in this docker image
|
- pip install --upgrade --force-reinstall pandas
|
||||||
# run nosetests - Tests
|
- os: linux
|
||||||
script: make test-$PYV
|
language: python
|
||||||
|
python: 3.5
|
||||||
|
- os: linux
|
||||||
|
language: python
|
||||||
|
python: 3.6
|
||||||
|
- os: linux
|
||||||
|
language: python
|
||||||
|
python: 3.7
|
||||||
|
- os: osx
|
||||||
|
language: generic
|
||||||
|
addons:
|
||||||
|
homebrew:
|
||||||
|
# update: true
|
||||||
|
packages: python3
|
||||||
|
before_install:
|
||||||
|
- python3 -m pip install --upgrade virtualenv
|
||||||
|
- virtualenv -p python3 --system-site-packages "$HOME/venv"
|
||||||
|
- source "$HOME/venv/bin/activate"
|
||||||
|
- os: windows
|
||||||
|
language: bash
|
||||||
|
before_install:
|
||||||
|
- choco install -y python3
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
||||||
|
# command to run tests
|
||||||
|
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
|
||||||
|
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
|
||||||
|
script:
|
||||||
|
- python3 setup.py test || python setup.py test
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
mock
|
mock
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest
|
pytest
|
||||||
|
pandas
|
||||||
|
Loading…
Reference in New Issue