.travis.yml 1.06 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
language: python
rusty1s's avatar
rusty1s committed
2
3

jobs:
rusty1s's avatar
rusty1s committed
4
  include:
rusty1s's avatar
rusty1s committed
5
    - os: linux
rusty1s's avatar
py 3.6  
rusty1s committed
6
      python: 3.6
rusty1s's avatar
rusty1s committed
7
    - os: osx
rusty1s's avatar
py 3.6  
rusty1s committed
8
      python: 3.6
rusty1s's avatar
gcc-4.9  
rusty1s committed
9
10
11
12
13
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
rusty1s's avatar
rusty1s committed
14
15
      - gcc-5
      - g++-5
rusty1s's avatar
gcc-4.9  
rusty1s committed
16
before_install:
rusty1s's avatar
rusty1s committed
17
18
19
20
21
  - if [ "TRAVIS_OS_NAME" = "linux"]; then export CC=gcc-5; fi
  - if [ "TRAVIS_OS_NAME" = "linux"]; then export CXX=g++-5; fi
  - if [ "TRAVIS_OS_NAME" = "osx"]; then export MACOSX_DEPLOYMENT_TARGET=10.9; fi
  - if [ "TRAVIS_OS_NAME" = "osx"]; then export CC=clang; fi
  - if [ "TRAVIS_OS_NAME" = "osx"]; then export CXX=clang++; fi
rusty1s's avatar
rusty1s committed
22
install:
rusty1s's avatar
rusty1s committed
23
  - pip install numpy
rusty1s's avatar
rusty1s committed
24
  - pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
rusty1s's avatar
rusty1s committed
25
26
  - pip install pycodestyle
  - pip install flake8
rusty1s's avatar
rusty1s committed
27
  - pip install codecov
rusty1s's avatar
rusty1s committed
28
29
  - pip install sphinx
  - pip install sphinx_rtd_theme
rusty1s's avatar
rusty1s committed
30
script:
rusty1s's avatar
rusty1s committed
31
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
32
33
  - pycodestyle .
  - flake8 .
rusty1s's avatar
rusty1s committed
34
  - python setup.py install
rusty1s's avatar
rusty1s committed
35
  - python setup.py test
rusty1s's avatar
rusty1s committed
36
  - cd docs && make clean && make html && make doctest && cd ..
rusty1s's avatar
rusty1s committed
37
38
after_success:
  - codecov
rusty1s's avatar
rusty1s committed
39
40
notifications:
  email: false