forked from jpuigcerver/PyLaia
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (28 loc) · 875 Bytes
/
.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
language: python
dist: xenial
sudo: true
python:
- 3.5
- 3.6
- 3.7
notifications:
email:
on_success: change
on_failure: always
env:
matrix:
- PYTORCH_REQUIREMENTS="requirements_pytorch_1.1.0.txt"
- PYTORCH_REQUIREMENTS="requirements_pytorch_1.2.0.txt"
- PYTORCH_REQUIREMENTS="requirements_pytorch_1.3.0.txt"
- PYTORCH_REQUIREMENTS="requirements_pytorch_1.4.0.txt"
- PYTORCH_REQUIREMENTS=""
before_install:
# Upgrade PIP to latest version, in order to support --progres-bar
- python -m pip install -U pip
# Install dependencies for a particular PyTorch version first.
- if [ -n "$PYTORCH_REQUIREMENTS" ]; then python -m pip install --progress-bar off -r travis/${PYTORCH_REQUIREMENTS}; fi
- python -m pip install --progress-bar off -r requirements.txt
install:
- python setup.py install
script:
- ./travis/run_tests.sh