| # https://travis-ci.org/pytorch/pytorch |
| language: python |
| python: |
| - 2.7.8 |
| - 2.7 |
| - 3.5 |
| - 3.6 |
| - nightly |
| |
| cache: |
| - ccache |
| - directories: |
| - $HOME/.ccache |
| |
| install: |
| - 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 --upgrade pip setuptools wheel |
| - travis_retry pip install -r requirements.txt --only-binary=scipy |
| - python setup.py install |
| |
| script: |
| - OMP_NUM_THREADS=2 ./test/run_test.sh |
| |
| addons: |
| apt: |
| sources: |
| - ubuntu-toolchain-r-test |
| packages: |
| - gcc-4.8 |
| - g++-4.8 |
| |
| # This reportedly works around an issue downloading packages from pypi on |
| # travis. Consider removing this after the underlying issue is fixed. |
| # https://github.com/travis-ci/travis-ci/issues/2389 |
| sudo: false |
| |
| matrix: |
| fast_finish: true |
| include: |
| env: LINT_CHECK |
| python: "2.7" |
| addons: true |
| install: pip install flake8 |
| script: flake8 |