.travis.yml 1.22 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
      language: sh
      addons:
        homebrew:
          packages: python3
rusty1s's avatar
rusty1s committed
21
22
23
24
25
26
27
28
      cache:
        directories:
          - $HOME/Library/Caches/Homebrew
          - /usr/local/Homebrew
      before_install:
        - python3 -m pip install --upgrade virtualenv
        - virtualenv -p python3 --system-site-packages "$HOME/venv"
        - source "$HOME/venv/bin/activate"
rusty1s's avatar
rusty1s committed
29
30
31
      env:
        - CC=clang
        - CXX=clang++
rusty1s's avatar
rusty1s committed
32
install:
rusty1s's avatar
rusty1s committed
33
  - pip install numpy
rusty1s's avatar
rusty1s committed
34
  - pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
rusty1s's avatar
rusty1s committed
35
36
  - pip install pycodestyle
  - pip install flake8
rusty1s's avatar
rusty1s committed
37
  - pip install codecov
rusty1s's avatar
rusty1s committed
38
39
  - pip install sphinx
  - pip install sphinx_rtd_theme
rusty1s's avatar
rusty1s committed
40
script:
rusty1s's avatar
rusty1s committed
41
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
42
43
  - pycodestyle .
  - flake8 .
rusty1s's avatar
rusty1s committed
44
  - python setup.py install
rusty1s's avatar
rusty1s committed
45
  - python setup.py test
rusty1s's avatar
rusty1s committed
46
  - cd docs && make clean && make html && make doctest && cd ..
rusty1s's avatar
rusty1s committed
47
48
after_success:
  - codecov
rusty1s's avatar
rusty1s committed
49
50
notifications:
  email: false