.travis.yml 965 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
language: python
sudo: required
dist: trusty
rusty1s's avatar
g++4.9  
rusty1s committed
4
5
6
7
8
9
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.9
rusty1s's avatar
rusty1s committed
10
11
12
13
14
15
matrix:
  include:
    - python: 2.7
    - python: 3.5
    - python: 3.6
install:
rusty1s's avatar
rusty1s committed
16
17
18
  - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl; fi
  - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install  http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl; fi
  - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl; fi
rusty1s's avatar
rusty1s committed
19
20
  - pip install pycodestyle
  - pip install flake8
rusty1s's avatar
rusty1s committed
21
  - pip install codecov
rusty1s's avatar
rusty1s committed
22
23
24
25
script:
  - pycodestyle .
  - flake8 .
  - python setup.py install
rusty1s's avatar
rusty1s committed
26
  - python setup.py test
rusty1s's avatar
rusty1s committed
27
  - cd docs && pip install -r requirements.txt && make clean && make html && make doctest && cd ..
rusty1s's avatar
rusty1s committed
28
29
after_success:
  - codecov
rusty1s's avatar
rusty1s committed
30
31
notifications:
  email: false