.travis.yml 1.17 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
jobs:
rusty1s's avatar
rusty1s committed
2
  include:
rusty1s's avatar
rusty1s committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    - os: linux
      language: python
      python: 3.7
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-5
            - g++-5
      env:
        - CC=gcc-5
        - CXX=g++-5
    - os: osx
      language: sh
      before_cache:
        - brew cleanup
      cache:
        directories:
          - $HOME/Library/Caches/Homebrew
          - /usr/local/Homebrew
      addons:
        homebrew:
          packages: python3
      before_install:
        - python3 -m pip install --upgrade virtualenv
        - virtualenv -p python3 --system-site-packages "$HOME/venv"
        - source "$HOME/venv/bin/activate"
      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
39
  - pip install pycodestyle
  - pip install flake8
  - pip install codecov
rusty1s's avatar
rusty1s committed
40
  - pip install torch-scatter
rusty1s's avatar
rusty1s committed
41
script:
rusty1s's avatar
rusty1s committed
42
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
43
44
  - pycodestyle .
  - flake8 .
rusty1s's avatar
rusty1s committed
45
46
47
48
49
50
  - python setup.py install
  - python setup.py test
after_success:
  - codecov
notifications:
  email: false