mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-21 15:52:28 +00:00
add windows+mac tests in travis
This commit is contained in:
parent
7ae493b3f3
commit
0f5bc514b7
52
.travis.yml
52
.travis.yml
@ -1,15 +1,43 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
services:
|
matrix:
|
||||||
- docker
|
allow_failures:
|
||||||
|
# Windows is experimental in Travis.
|
||||||
|
# As of this writing, senpy installs but hangs on tests that use the flask test client (e.g. blueprints)
|
||||||
|
- os: windows
|
||||||
|
include:
|
||||||
|
- os: linux
|
||||||
language: python
|
language: python
|
||||||
|
python: 3.4
|
||||||
env:
|
before_install:
|
||||||
- PYV=3.4
|
- pip install --upgrade --force-reinstall pandas
|
||||||
- PYV=3.5
|
- os: linux
|
||||||
- PYV=3.6
|
language: python
|
||||||
- PYV=3.7
|
python: 3.5
|
||||||
# - PYV=3.3 # Apt fails in this docker image
|
- os: linux
|
||||||
# run nosetests - Tests
|
language: python
|
||||||
script: make test-$PYV
|
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
|
||||||
|
11
README.rst
11
README.rst
@ -144,6 +144,17 @@ Instead, the maintainers will focus their efforts on keeping the codebase compat
|
|||||||
We apologize for the inconvenience.
|
We apologize for the inconvenience.
|
||||||
|
|
||||||
|
|
||||||
|
Having problems with senpy?
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
Please, file a new issue `on GitHub <https://github.com/gsi-upm/senpy/issues>`_ including enough details to reproduce the bug, including:
|
||||||
|
|
||||||
|
* Operating system
|
||||||
|
* Version of senpy (or docker tag)
|
||||||
|
* Installed libraries
|
||||||
|
* Relevant logs
|
||||||
|
* A simple code example
|
||||||
|
|
||||||
Acknowledgement
|
Acknowledgement
|
||||||
---------------
|
---------------
|
||||||
This development has been partially funded by the European Union through the MixedEmotions Project (project number H2020 655632), as part of the `RIA ICT 15 Big data and Open Data Innovation and take-up` programme.
|
This development has been partially funded by the European Union through the MixedEmotions Project (project number H2020 655632), as part of the `RIA ICT 15 Big data and Open Data Innovation and take-up` programme.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
The stable version can be used in two ways: as a system/user library through pip, or as a docker image.
|
The stable version can be used in two ways: as a system/user library through pip, or from a docker image.
|
||||||
|
|
||||||
The docker image is the recommended way because it is self-contained and isolated from the system, which means:
|
Using docker is recommended because the image is self-contained, reproducible and isolated from the system, which means:
|
||||||
|
|
||||||
* Downloading and using it is just one command
|
* It can be downloaded and run with just one simple command
|
||||||
* All dependencies are included
|
* All dependencies are included
|
||||||
* It is OS-independent (MacOS, Windows, GNU/Linux)
|
* It is OS-independent (MacOS, Windows, GNU/Linux)
|
||||||
* Several versions may coexist in the same machine without additional virtual environments
|
* Several versions may coexist in the same machine without additional virtual environments
|
||||||
@ -32,29 +32,26 @@ Through PIP
|
|||||||
cd senpy
|
cd senpy
|
||||||
pip install --user .
|
pip install --user .
|
||||||
|
|
||||||
|
Each version is automatically tested in GNU/Linux, macOS and Windows 10.
|
||||||
|
If you have trouble with the installation, please file an `issue on GitHub <https://github.com/gsi-upm/senpy/issues>`_.
|
||||||
|
|
||||||
|
|
||||||
Docker Image
|
Docker Image
|
||||||
************
|
************
|
||||||
The base image of senpy comes with some builtin plugins that you can use:
|
|
||||||
|
The base image of senpy comes with some built-in plugins that you can use:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
docker run -ti -p 5000:5000 gsiupm/senpy --host 0.0.0.0
|
docker run -ti -p 5000:5000 gsiupm/senpy --host 0.0.0.0
|
||||||
|
|
||||||
To add your custom plugins, you can use a docker volume:
|
To use your custom plugins, you can add volume to the container:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
docker run -ti -p 5000:5000 -v <PATH OF PLUGINS>:/plugins gsiupm/senpy --host 0.0.0.0 --plugins -f /plugins
|
docker run -ti -p 5000:5000 -v <PATH OF PLUGINS>:/plugins gsiupm/senpy --host 0.0.0.0 --plugins -f /plugins
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
There is a Senpy image for **python 2**, too:
|
|
||||||
|
|
||||||
.. code:: bash
|
|
||||||
|
|
||||||
docker run -ti -p 5000:5000 gsiupm/senpy:python2.7 --host 0.0.0.0
|
|
||||||
|
|
||||||
|
|
||||||
Alias
|
Alias
|
||||||
.....
|
.....
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ max-line-length = 100
|
|||||||
[bdist_wheel]
|
[bdist_wheel]
|
||||||
universal=1
|
universal=1
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
addopts = --cov=senpy --cov-report term-missing
|
addopts = -v --cov=senpy --cov-report term-missing
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
ignore:the matrix subclass:PendingDeprecationWarning
|
ignore:the matrix subclass:PendingDeprecationWarning
|
||||||
[coverage:report]
|
[coverage:report]
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
mock
|
mock
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest
|
pytest
|
||||||
|
pandas
|
||||||
|
Loading…
Reference in New Issue
Block a user