forked from cleanlab/cleanlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 1.53 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
# command to install dependencies
install:
- pip install -q tox-travis
- pip install -q pytest
- pip install -q pytest-cov
- pip install -q -r requirements.txt
# For testing cleanlab.models
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -q https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp27-cp27mu-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip3 install -q https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp35-cp35m-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip3 install -q https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -q torchvision --no-cache-dir; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install -q torchvision; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install -q torchvision; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then git clone -q https://github.com/facebookresearch/fastText.git && pip install -q -e fastText/.; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then git clone -q https://github.com/facebookresearch/fastText.git && pip install -q -e fastText/.; fi
# - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then git clone -q https://github.com/facebookresearch/fastText.git && pip install -q -e fastText/.; fi
- pip install -q -e .
# command to run tests
script:
- tox
- bash <(curl -s https://codecov.io/bash) -t c1817983-8176-4535-b31d-9fa9d649438a