Skip to content

Commit e46df1c

Browse files
committed
first osx test
1 parent 13e57de commit e46df1c

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
language: python
2-
sudo: required
3-
dist: trusty
4-
matrix:
2+
3+
jobs:
54
include:
6-
- python: 3.5
7-
- python: 3.6
5+
- os: linux
6+
python: 3.7
7+
- os: osx
8+
python: 3.7
89
addons:
910
apt:
1011
sources:
1112
- ubuntu-toolchain-r-test
1213
packages:
13-
- gcc-4.9
14-
- g++-4.9
14+
- gcc-5
15+
- g++-5
1516
before_install:
16-
- export CC="gcc-4.9"
17-
- export CXX="g++-4.9"
17+
- if [ "TRAVIS_OS_NAME" = "linux"]; then export CC=gcc-5; fi
18+
- if [ "TRAVIS_OS_NAME" = "linux"]; then export CXX=g++-5; fi
19+
- if [ "TRAVIS_OS_NAME" = "osx"]; then export MACOSX_DEPLOYMENT_TARGET=10.9; fi
20+
- if [ "TRAVIS_OS_NAME" = "osx"]; then export CC=clang; fi
21+
- if [ "TRAVIS_OS_NAME" = "osx"]; then export CXX=clang++; fi
1822
install:
1923
- pip install numpy
2024
- pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

0 commit comments

Comments
 (0)