.travis.yml 1.04 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
jobs:
rusty1s's avatar
rusty1s committed
2
  include:
rusty1s's avatar
rusty1s committed
3
    - os: linux
rusty1s's avatar
rusty1s committed
4
      language: python
rusty1s's avatar
rusty1s committed
5
      python: 3.7
rusty1s's avatar
rusty1s committed
6
7
8
9
10
11
12
13
14
15
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-5
            - g++-5
      env:
        - CC=gcc-5
        - CXX=g++-5
rusty1s's avatar
rusty1s committed
16
    - os: osx
rusty1s's avatar
rusty1s committed
17
18
19
20
21
22
23
24
      language: sh
      addons:
        homebrew:
          packages: python3
      env:
        - MACOSX_DEPLOYMENT_TARGET=10.9
        - CC=clang
        - CXX=clang++
rusty1s's avatar
rusty1s committed
25
26
27
      before_install:
        - alias pip=pip3
        - alias python=python3
rusty1s's avatar
rusty1s committed
28
install:
rusty1s's avatar
rusty1s committed
29
  - pip install numpy
rusty1s's avatar
rusty1s committed
30
  - pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
rusty1s's avatar
rusty1s committed
31
32
  - pip install pycodestyle
  - pip install flake8
rusty1s's avatar
rusty1s committed
33
  - pip install codecov
rusty1s's avatar
rusty1s committed
34
35
  - pip install sphinx
  - pip install sphinx_rtd_theme
rusty1s's avatar
rusty1s committed
36
script:
rusty1s's avatar
rusty1s committed
37
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
38
39
  - pycodestyle .
  - flake8 .
rusty1s's avatar
rusty1s committed
40
  - python setup.py install
rusty1s's avatar
rusty1s committed
41
  - python setup.py test
rusty1s's avatar
rusty1s committed
42
  - cd docs && make clean && make html && make doctest && cd ..
rusty1s's avatar
rusty1s committed
43
44
after_success:
  - codecov
rusty1s's avatar
rusty1s committed
45
46
notifications:
  email: false