summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAdam Paszke <adam.paszke@gmail.com>2017-01-27 21:45:59 +0100
committerAdam Paszke <adam.paszke@gmail.com>2017-01-28 00:28:33 +0100
commitce78bc898bd37c6aff4d815fc86b57ae11dbd9d7 (patch)
tree11f8768a21a2f5c502b082220c11fb79e3f24e76 /.travis.yml
parent887002e93216a64e0fc4bad2d1090df13f5cf1c2 (diff)
downloadpytorch-ce78bc898bd37c6aff4d815fc86b57ae11dbd9d7.tar.gz
pytorch-ce78bc898bd37c6aff4d815fc86b57ae11dbd9d7.tar.bz2
pytorch-ce78bc898bd37c6aff4d815fc86b57ae11dbd9d7.zip
Fix travis builds and add ccache
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml17
1 files changed, 13 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index ccd0eb3b13..781eb2db42 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,16 +4,25 @@ python:
- 2.7.8
- 2.7
- 3.5
+ - 3.6
- nightly
+cache:
+ - ccache
+ - directories:
+ - $HOME/.ccache
+
install:
- - export CC="gcc-4.8"
- - export CXX="g++-4.8"
+ - unset CCACHE_DISABLE
+ - export CCACHE_DIR=$HOME/.ccache
+ - export CC="ccache gcc-4.8"
+ - export CXX="ccache g++-4.8"
+ - ccache --show-stats
- travis_retry pip install -r requirements.txt
- - travis_retry pip install .
+ - python setup.py install
script:
- - ./test/run_test.sh
+ - OMP_NUM_THREADS=2 ./test/run_test.sh
addons:
apt: