Skip to content

Commit e685cfe

Browse files
authored
Add PyTorch 1.4.0 in CI (#291)
1 parent b2daf1d commit e685cfe

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
- TORCH_VER="1.1.0"
1313
- TORCH_VER="1.2.0"
1414
- TORCH_VER="1.3.0"
15+
- TORCH_VER="1.4.0"
1516

1617
matrix:
1718
fast_finish: true
@@ -22,12 +23,14 @@ matrix:
2223
env: TORCH_VER="1.2.0"
2324
- python: "3.6"
2425
env: TORCH_VER="1.3.0"
26+
- python: "3.6"
27+
env: TORCH_VER="1.4.0"
2528

2629
install:
2730
- pip install --upgrade pip
2831
- pip install --progress-bar off torch==$TORCH_VER
2932
- pip install --progress-bar off .[extras]
30-
- if [[ $TORCH_VER == "1.3.0" ]]; then
33+
- if [[ $TORCH_VER == "1.4.0" ]]; then
3134
pip install pylint==2.3.1 flake8==3.7.7;
3235
fi
3336
- if [[ $TORCH_VER != "1.0.1" ]]; then
@@ -37,14 +40,14 @@ install:
3740
- pip install coverage codecov
3841

3942
script:
40-
# Linting (only for PyTorch version 1.3.0 to save time)
41-
- if [[ $TORCH_VER == "1.3.0" ]]; then
43+
# Linting (only for PyTorch version 1.4.0 to save time)
44+
- if [[ $TORCH_VER == "1.4.0" ]]; then
4245
pylint texar/ examples/;
4346
fi
44-
- if [[ $TORCH_VER == "1.3.0" ]]; then
47+
- if [[ $TORCH_VER == "1.4.0" ]]; then
4548
flake8 texar/ examples/;
4649
fi
47-
# Type-checking (only for PyTorch version 1.1.0 & 1.2.0 & 1.3.0)
50+
# Type-checking (only for PyTorch version 1.1.0 - 1.4.0)
4851
- if [[ $TORCH_VER != "1.0.1" ]]; then
4952
mypy .;
5053
fi

0 commit comments

Comments
 (0)