Commit e46df1cc authored by rusty1s's avatar rusty1s
Browse files

first osx test

parent 13e57def
language: python language: python
sudo: required
dist: trusty jobs:
matrix:
include: include:
- python: 3.5 - os: linux
- python: 3.6 python: 3.7
- os: osx
python: 3.7
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- gcc-4.9 - gcc-5
- g++-4.9 - g++-5
before_install: before_install:
- export CC="gcc-4.9" - if [ "TRAVIS_OS_NAME" = "linux"]; then export CC=gcc-5; fi
- export CXX="g++-4.9" - if [ "TRAVIS_OS_NAME" = "linux"]; then export CXX=g++-5; fi
- if [ "TRAVIS_OS_NAME" = "osx"]; then export MACOSX_DEPLOYMENT_TARGET=10.9; fi
- if [ "TRAVIS_OS_NAME" = "osx"]; then export CC=clang; fi
- if [ "TRAVIS_OS_NAME" = "osx"]; then export CXX=clang++; fi
install: install:
- pip install numpy - pip install numpy
- pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html - pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment