jobs: include: - 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 addons: homebrew: packages: python3 env: - MACOSX_DEPLOYMENT_TARGET=10.9 - CC=clang - CXX=clang++ before_install: - alias pip=pip3 - alias python=python3 install: - pip install numpy - pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html - pip install pycodestyle - pip install flake8 - pip install codecov - pip install sphinx - pip install sphinx_rtd_theme script: - python -c "import torch; print(torch.__version__)" - pycodestyle . - flake8 . - python setup.py install - python setup.py test - cd docs && make clean && make html && make doctest && cd .. after_success: - codecov notifications: email: false