.travis.yml 785 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
5
6
7
language: python
sudo: required
dist: trusty
matrix:
  include:
    - python: 3.5
    - python: 3.6
rusty1s's avatar
gcc-4.9  
rusty1s committed
8
9
10
11
12
13
14
15
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.9
      - g++-4.9
before_install:
rusty1s's avatar
fix  
rusty1s committed
16
17
  - export CC="gcc-4.9"
  - export CXX="g++-4.9"
rusty1s's avatar
rusty1s committed
18
install:
rusty1s's avatar
rusty1s committed
19
  - pip install numpy
rusty1s's avatar
rusty1s committed
20
  - pip install -q torch -f https://download.pytorch.org/whl/nightly/cpu/torch.html
rusty1s's avatar
rusty1s committed
21
22
  - pip install pycodestyle
  - pip install flake8
rusty1s's avatar
rusty1s committed
23
  - pip install codecov
rusty1s's avatar
rusty1s committed
24
25
  - pip install sphinx
  - pip install sphinx_rtd_theme
rusty1s's avatar
rusty1s committed
26
script:
rusty1s's avatar
rusty1s committed
27
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
28
29
  - pycodestyle .
  - flake8 .
rusty1s's avatar
rusty1s committed
30
  - python setup.py install
rusty1s's avatar
rusty1s committed
31
  - python setup.py test
rusty1s's avatar
rusty1s committed
32
  - cd docs && make clean && make html && make doctest && cd ..
rusty1s's avatar
rusty1s committed
33
34
after_success:
  - codecov
rusty1s's avatar
rusty1s committed
35
36
notifications:
  email: false