-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
49 lines (44 loc) · 1.76 KB
/
.travis.yml
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
language: python
python:
- "3.6"
env:
- PYTORCH_VERSION="1.0.0" TORCHVISION_VERSION="0.2.2" TORCH=true
- PYTORCH_VERSION="1.1.0" TORCHVISION_VERSION="0.3.0" TORCH=true
- PYTORCH_VERSION="1.2.0" TORCHVISION_VERSION="0.4.0" TORCH=true
- PYTORCH_VERSION="1.3.0" TORCHVISION_VERSION="0.4.1" TORCH=true
- PYTORCH_VERSION="1.4.0" TORCHVISION_VERSION="0.5.0" TORCH=true
- PYTORCH_VERSION="1.5.0" TORCHVISION_VERSION="0.6.0" TORCH=true
- PYTORCH_VERSION="1.6.0" TORCHVISION_VERSION="0.7.0" TORCH=true
- TF_VERSION="2.2" TF_IO_VERSION="0.13" TF=true
services:
- docker
before_install:
- mkdir /tmp/unittest
- sudo chown -R $USER /tmp/unittest
- docker pull minio/minio
- docker run -it -d -p 9001:9000 --restart always -e "MINIO_ACCESS_KEY=minio" -e "MINIO_SECRET_KEY=miniosecretkey" -v /tmp/unittest:/container/vol minio/minio gateway nas /container/vol
# command to install dependencies
install:
- pip install -U pip
- pip install coverage
- pip install -r requirements.txt
- python setup.py install
- if [[ $TORCH ]]; then
pip install torch==${PYTORCH_VERSION};
pip install torchvision==${TORCHVISION_VERSION};
else
pip install tensorflow==${TF_VERSION};
pip install tensorflow_io==${TF_IO_VERSION};
fi
script:
- if [[ $TORCH ]]; then
python -c "import torch; print('PyTorch Version:', torch.__version__)";
python -c "import torchvision; print('TorchVision Version:', torchvision.__version__)";
else
python -c "import tensorflow as tf; print('Tensorflow Version:', tf.__version__)";
python -c "import tensorflow_io as tfio; print('Tensorflow IO Version:', tfio.__version__)";
fi
- python setup.py install;
- coverage run -m tests.test_suite;
after_success:
- bash <(curl -s https://codecov.io/bash)