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