-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy path.travis.yml
64 lines (60 loc) · 1.94 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: c++
matrix:
include:
os: osx
osx_image: xcode7.3
before_install:
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- whoami
- BASEDIR=$(pwd)
- echo BASEDIR $BASEDIR
- 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 requirements.txt
- pip install -r test/requirements.txt
- echo ============= python 2.7 ==================
- cd ${BASEDIR}
- wget https://www.python.org/ftp/python/2.7.11/python-2.7.11rc1-macosx10.6.pkg
- sudo installer -pkg python-2.7.11rc1-macosx10.6.pkg -target /
- python2.7 -V
- ${BASEDIR}/virtualenv-14.0.6/virtualenv.py -p python2.7 ~/env27
- source ~/env27/bin/activate
- pip install -r requirements.txt
- bash travis/install-torch.sh
- source ~/torch/install/bin/torch-activate
script:
- cd ~/build/hughperkins/pytorch
- source ~/env34/bin/activate
- cat ~/torch/install/bin/torch-activate
- source ~/torch/install/bin/torch-activate
- ./build.sh
- PYTORCHSOPATH=$(find ~/env34/lib -name "PyTorch*.so")
- echo PYTORCHSOPATH=${PYTORCHSOPATH}
- otool -L ${PYTORCHSOPATH}
- cd simpleexample
- python pybit.py
- cd ..
- pip install -r test/requirements.txt
- luarocks install nnx
- ./run_tests.sh
- cd ~/build/hughperkins/pytorch
- source ~/env27/bin/activate
- source ~/torch/install/bin/torch-activate
- ./build.sh
- cd simpleexample
- python pybit.py
- cd ..
- pip install -r test/requirements.txt
- luarocks install nnx
- ./run_tests.sh
notifications:
email:
on_success: never
on_failure: never