-
Notifications
You must be signed in to change notification settings - Fork 200
/
.travis.yml
75 lines (71 loc) · 2.25 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
64
65
66
67
68
69
70
71
72
73
74
language: objective-c
matrix:
include:
- env: OSX=10.11
os: osx
osx_image: xcode7.3
rvm: system
before_install:
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- git submodule update --init --recursive
- whoami
- pwd
- ls
- git status
- ls ~
- echo $HOME
- env
- BASEDIR=$(pwd)
- echo BASEDIR $BASEDIR
- echo ===== virtualenv ===========
- cd ${BASEDIR}
- 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 ==============
- cd ${BASEDIR}
- 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
- ${BASEDIR}/virtualenv-14.0.6/virtualenv.py -p python3 ~/env34
- source ~/env34/bin/activate
- pip install -U pip
- pip install -U setuptools
- pip install wheel
- pip install numpy
- 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 -U pip
- pip install -U setuptools
- pip install wheel
- pip install numpy
script:
- mkdir build
- cd build
- cmake -DBUILD_PYTHON_WRAPPERS=ON ..
- make -j 4
- make install
- source ../dist/bin/activate.sh
- deepcl_unittests tests=-DATA*:SLOW*:testClBlas*:testDeepCL.basic:testupdateweights*:testforward*:testsimpleconvolvenet*:testlogicaloperators*:testbackward*:testsinglebatch*:EXCLUDED*:testpoolingforward*:testCopyBlock.basic:testCopyLocal.basic:testactivationforward*:testdropoutforward*:testsgd.basic:testCLMathWrapper.sqrt
- echo ====== python 3.4 ==============
- cd ${BASEDIR}/python
- source ~/env34/bin/activate
- python -V
- python setup.py install
- cd ${BASEDIR}
- python travis/simpletest.py
- echo ====== python 2.7 ==============
- cd ${BASEDIR}/python
- source ~/env27/bin/activate
- python -V
- python setup.py install
- cd ${BASEDIR}
- python travis/simpletest.py
notifications:
email:
on_success: change
on_failure: always