forked from pytorch/text
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (29 loc) · 1.08 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
dist: trusty
language: python
cache:
directories:
- /home/travis/download
- /home/travis/.cache/pip
# This matrix tests that the code works on Python 2.7,
# 2.7.9, 3.5, 3.6 (same versions as PyTorch CI), and passes lint.
matrix:
fast_finish: true
include:
- env: PYTHON_VERSION="2.7" COVERAGE="true"
- env: PYTHON_VERSION="2.7.9" COVERAGE="true"
- env: PYTHON_VERSION="3.5" COVERAGE="true"
- env: PYTHON_VERSION="3.6" COVERAGE="true"
- env: PYTHON_VERSION="2.7" RUN_FLAKE8="true" SKIP_TESTS="true"
- env: PYTHON_VERSION="3.6" RUN_FLAKE8="true" SKIP_TESTS="true"
- env: PYTHON_VERSION="2.7.9" RUN_SLOW="true" COVERAGE="true"
sudo: required
- env: PYTHON_VERSION="3.6" RUN_SLOW="true" COVERAGE="true"
sudo: required
allow_failures:
- env: PYTHON_VERSION="2.7.9" RUN_SLOW="true" COVERAGE="true"
- env: PYTHON_VERSION="3.6" RUN_SLOW="true" COVERAGE="true"
notifications:
email: false
install: source build_tools/travis/install.sh
script: bash build_tools/travis/test_script.sh
after_success: source build_tools/travis/after_success.sh