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