-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
54 lines (45 loc) · 990 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dist: xenial
sudo: true
language: python
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
python:
- 2.7
- 3.5
- 3.6
- 3.7
# Test all Python version with the latest PyTorch.
env:
global:
- CC=gcc-4.9 CXX=g++-4.9
matrix:
- TORCH_PIP_PACKAGE=torch
# Test other PyTorch/Python combinations.
# matrix:
# include:
# - python: 3.6
# env: TORCH_PIP_PACKAGE="torch==1.0.0"
# - python: 3.6
# env: TORCH_PIP_PACKAGE="torch==1.0.1"
before_install:
# Upgrade PIP to latest version, in order to support --progres-bar
- pip install -U pip
# Install prerequisites.
- pip install --progress-bar off -r <(sed -r 's/^torch.*$//g;/^$/d' requirements.txt)
- pip install $TORCH_PIP_PACKAGE --progress-bar off
install:
- python setup.py install
script:
- cd /tmp
- python -m unittest torch_baidu_ctc.test
notifications:
email:
on_success: change
on_failure: always