Travis doesn't build python 2 - add dummy build to run full matrix
@@ -5,18 +5,24 @@ branches:
- beta
python:
- - "2.7"
- "3.6"
env:
- PYTORCH_VERSION=master
+ - PYTORCH_VERSION=dummy # Just a hack to make sure th matrix runs
install:
- - pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- - python setup.py build develop
+ - if [[ $PYTORCH_VERSION -ne "dummy" ]]; then
+ pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
+ python setup.py build develop;
+ fi
script:
- - python -c "import torch; print('PyTorch Version:', torch.__version__)"
- - python -m unittest discover
+ - if [[ $PYTORCH_VERSION -ne "dummy" ]]; then
+ python -c "import torch; print('PyTorch Version:', torch.__version__)";
+ python -m unittest discover;
+ else
+ echo "Dummy build"
+ fi
matrix:
include:
