-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (45 loc) · 1.45 KB
/
.travis.yml
1
2
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: objective-c
matrix:
include:
- env: OSX=10.11 TOXENV=py33
os: osx
osx_image: xcode7.3
rvm: system
before_install:
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- whoami
- export BASE=$(pwd)
- echo BASE $BASE
- git clone https://github.com/hughperkins/distro-cl -b distro-cl torch-cl
- cd torch-cl
- bash ${BASE}/travis/install_distro_cl.sh
- source ${BASE}/torch-cl/install/bin/torch-activate
- luarocks install nnx
- cd ${BASE}
- echo ========== virtualenv ============
- wget https://pypi.python.org/packages/source/v/virtualenv/virtualenv-14.0.6.tar.gz
- tar -xf virtualenv-14.0.6.tar.gz
- echo =========== python 3.4 =================
- wget https://www.python.org/ftp/python/3.4.4/python-3.4.4-macosx10.6.pkg
- sudo installer -pkg python-3.4.4-macosx10.6.pkg -target /
- python3 -V
- virtualenv-14.0.6/virtualenv.py -p python3 ~/env34
- source ~/env34/bin/activate
- pip install -r ${BASE}/pytorch/requirements.txt
- pip install -r ${BASE}/pytorch/test/requirements.txt
- source ${BASE}/torch-cl/install/bin/torch-activate
- cd ${BASE}/pytorch
- bash ${BASE}/travis/download_mnist.sh
- bash build.sh
- py.test -sv
- cd ${BASE}
- pip install -r requirements.txt
- pip install -r test/requirements.txt
- NOPYTORCHBUILD=1 bash build.sh
script:
- cd ${BASE}
- ALLOW_NON_GPUS=1 py.test -sv
notifications:
email:
on_success: never
on_failure: always