blob: 3f63867d60b215b1670d51d3cf4a1db9b23be7b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
dist: xenial # required for Python >= 3.7
language: python
matrix:
# allow_failures:
# - os: osx
# - os: windows
include:
- os: linux
sudo: required
python: 3.5
- os: linux
sudo: required
python: 3.6
- os: linux
sudo: required
python: 3.7
- os: linux
sudo: required
python: 3.8
# - os: osx
# sudo: required
# language: generic
# - 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
# env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
# before_script: # configure a headless display to test plot generation
# - "export DISPLAY=:99.0"
# - sleep 3 # give xvfb some time to start
before_install:
- ./.travis/before_install.sh
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -U "numpy>=1.14" scipy # for numpy array formatting in doctests
- pip install flake8 pytest "pytest-cov<2.6" codecov
- pip install -U "sklearn"
- pip install .
# command to run tests + check syntax style
services:
- xvfb
script:
- python setup.py develop
- flake8 examples/ ot/ test/
- python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot
# - py.test ot test
after_script:
# Need to run from source dir to execute "git" commands
- codecov;
|