|
a |
|
b/.travis.yml |
|
|
1 |
language: minimal |
|
|
2 |
|
|
|
3 |
os: |
|
|
4 |
- linux |
|
|
5 |
|
|
|
6 |
env: |
|
|
7 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.2 (torchvision 0.2 does not have VisionDataset) |
|
|
8 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.3 (torchvision 0.3 has a cuda issue) |
|
|
9 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.4 |
|
|
10 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.5 |
|
|
11 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.2 |
|
|
12 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.3 |
|
|
13 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.4 |
|
|
14 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.5 |
|
|
15 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.2 |
|
|
16 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.3 |
|
|
17 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.4 |
|
|
18 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.5 |
|
|
19 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.2 |
|
|
20 |
# - PYTHON_VERSION=3.6 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.3 |
|
|
21 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.4 |
|
|
22 |
- PYTHON_VERSION=3.6 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.5 |
|
|
23 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.2 |
|
|
24 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.3 |
|
|
25 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.4 |
|
|
26 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.1 TORCHVISION_VERSION=0.5 |
|
|
27 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.2 |
|
|
28 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.3 |
|
|
29 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.4 |
|
|
30 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.2 TORCHVISION_VERSION=0.5 |
|
|
31 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.2 |
|
|
32 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.3 |
|
|
33 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.4 |
|
|
34 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.3 TORCHVISION_VERSION=0.5 |
|
|
35 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.2 |
|
|
36 |
# - PYTHON_VERSION=3.7 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.3 |
|
|
37 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.4 |
|
|
38 |
- PYTHON_VERSION=3.7 PYTORCH_VERSION=1.4 TORCHVISION_VERSION=0.5 |
|
|
39 |
|
|
|
40 |
install: |
|
|
41 |
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; |
|
|
42 |
then |
|
|
43 |
MINICONDA_OS=Linux; |
|
|
44 |
sudo apt-get update; |
|
|
45 |
else |
|
|
46 |
MINICONDA_OS=MacOSX; |
|
|
47 |
brew update; |
|
|
48 |
fi |
|
|
49 |
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-${MINICONDA_OS}-x86_64.sh -O miniconda.sh |
|
|
50 |
- bash miniconda.sh -b -p $HOME/miniconda |
|
|
51 |
- source "$HOME/miniconda/etc/profile.d/conda.sh" |
|
|
52 |
- hash -r |
|
|
53 |
- conda config --set always_yes yes --set changeps1 no |
|
|
54 |
- conda update -q conda |
|
|
55 |
# Useful for debugging any issues with conda |
|
|
56 |
- conda info -a |
|
|
57 |
- conda search pytorch || true |
|
|
58 |
|
|
|
59 |
- conda create -q -n test-environment python=${PYTHON_VERSION} pytorch=${PYTORCH_VERSION} |
|
|
60 |
- conda activate test-environment |
|
|
61 |
- pip install -q torchvision==${TORCHVISION_VERSION} "pillow<7.0.0" |
|
|
62 |
- pip install -q . |
|
|
63 |
- pip install -q flake8 pylint |
|
|
64 |
|
|
|
65 |
script: |
|
|
66 |
- flake8 --ignore=E501 |
|
|
67 |
- pylint --disable=C0103,C0301,R0401,R0801,R0902,R0912,R0913,R0914,R0915 --extension-pkg-whitelist=cv2,torch --generated-members=torch.* echonet/ scripts/*.py setup.py |
|
|
68 |
- python -c "import echonet" |