Skip to content

Commit 3cfe2d6

Browse files
committed
Merge branch 'release/3.2.1'
2 parents 94c92de + 9e38418 commit 3cfe2d6

File tree

1,459 files changed

+108324
-11606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,459 files changed

+108324
-11606
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ configure.log
2727
*.oct
2828
.localvimrc
2929
*.DS_Store
30+
cscope.*
31+
cpplint.py
3032

3133
*~
3234
\#*\#
@@ -127,8 +129,11 @@ configure.log
127129
# cmake
128130
/CMakeFiles/
129131
CMakeCache.txt
130-
/build
132+
/build*
131133
/third_party
132134

133135
# protobuf
134136
src/shogun/io/protobuf/*.pb.*
137+
138+
# ipython notebook
139+
.ipynb_checkpoints/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
[submodule "doc/tutorial"]
66
path = doc/tutorial
77
url = git://github.com/shogun-toolbox/shogun-tutorial.git
8+
[submodule "doc/md"]
9+
path = doc/md
10+
url = git://github.com/shogun-toolbox/shogun.wiki.git

.travis.yml

Lines changed: 86 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
language: cpp
2-
compiler:
3-
- gcc
4-
- clang
52
notifications:
63
email: false
74
irc:
@@ -12,60 +9,115 @@ notifications:
129
template:
1310
- "it's %{author}'s turn to pay the next round of drinks for the massacre he caused in %{repository}: %{build_url}"
1411
matrix:
12+
fast_finish: true
1513
include:
1614
- compiler: gcc
17-
env: CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON" CUSTOM_PKG="sudo pip install -q cpp-coveralls" COVERALLS=1
1815
- compiler: clang
19-
python: 2.7
16+
- compiler: gcc
17+
env:
18+
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DENABLE_CCACHE=OFF"
19+
- CUSTOM_PKG="sudo pip install -q cpp-coveralls"
20+
- COVERALLS=1
21+
- compiler: clang
22+
python: "2.7_with_system_site_packages"
2023
language: python
21-
env: CMAKE_OPTIONS="-DPythonModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="python-scipy swig2.0" CC=clang CXX=clang++
24+
env:
25+
- CMAKE_OPTIONS="-DPythonModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
26+
- EXTRA_PACKAGES="python-numpy python-scipy swig2.0"
27+
- CC=clang
28+
- CXX=clang++
2229
- compiler: clang
2330
python: 3.3
2431
language: python
25-
env: CMAKE_OPTIONS="-DPythonModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="swig2.0" CC=clang CXX=clang++ PIP_ARGS=" -I --no-index --find-links=http://cache27diy-cpycloud.rhcloud.com/3.3/"
32+
env:
33+
- CMAKE_OPTIONS="-DPythonModular=ON -DCMAKE_PREFIX_PATH=/home/travis/miniconda/envs/testenv -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
34+
- EXTRA_PACKAGES="swig2.0"
35+
- CC=clang
36+
- CXX=clang++
2637
- compiler: clang
2738
rvm: 1.8.7
2839
language: ruby
29-
env: CMAKE_OPTIONS="-DRubyModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" CUSTOM_PKG="gem install narray" EXTRA_PACKAGES="swig2.0" CC=clang CXX=clang++
40+
env:
41+
- CMAKE_OPTIONS="-DRubyModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
42+
- CUSTOM_PKG="gem install narray"
43+
- EXTRA_PACKAGES="swig2.0"
44+
- CC=clang
45+
- CXX=clang++
3046
- compiler: clang
3147
jdk: oraclejdk7
3248
language: java
33-
env: CMAKE_OPTIONS="-DJavaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="jblas swig2.0" CC=clang CXX=clang++
49+
env:
50+
- CMAKE_OPTIONS="-DJavaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
51+
- EXTRA_PACKAGES="jblas swig2.0"
52+
- CC=clang
53+
- CXX=clang++
3454
- compiler: clang
35-
env: CMAKE_OPTIONS="-DCSharpModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="mono-devel mono-gmcs cli-common-dev swig2.0" CC=clang CXX=clang++
55+
env:
56+
- CMAKE_OPTIONS="-DCSharpModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
57+
- EXTRA_PACKAGES="mono-devel mono-gmcs cli-common-dev swig2.0"
58+
- CC=clang
59+
- CXX=clang++
3660
- compiler: clang
37-
env: CMAKE_OPTIONS="-DLuaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="lua5.1 liblua5.1-0-dev swig2.0" CC=clang CXX=clang++
61+
env:
62+
- CMAKE_OPTIONS="-DLuaModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
63+
- EXTRA_PACKAGES="lua5.1 liblua5.1-0-dev swig2.0"
64+
- CC=clang
65+
- CXX=clang++
3866
- compiler: gcc
39-
env: CMAKE_OPTIONS="-DOctaveModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="octave liboctave-dev swig2.0"
67+
env:
68+
- CMAKE_OPTIONS="-DOctaveModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
69+
- EXTRA_PACKAGES="octave liboctave-dev swig2.0"
4070
- compiler: clang
41-
env: CMAKE_OPTIONS="-DRModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="r-base-core swig2.0" CC=clang CXX=clang++
71+
env:
72+
- CMAKE_OPTIONS="-DRModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON"
73+
- EXTRA_PACKAGES="r-base-core swig2.0"
74+
- CC=clang
75+
- CXX=clang++
4276
- language: objective-c
43-
env: OSX=1
44-
allow_failures:
45-
- compiler: clang
46-
env: CMAKE_OPTIONS="-DRModular=ON -DTRAVIS_DISABLE_UNIT_TESTS=ON -DTRAVIS_DISABLE_LIBSHOGUN_TESTS=ON" EXTRA_PACKAGES="r-base-core swig2.0" CC=clang CXX=clang++
47-
virtualenv:
48-
system_site_packages: true
77+
env:
78+
- OSX=1
79+
- CUSTOM_PKG="curl -O -L https://raw.github.com/rudix-mac/package-manager/master/rudix.py && sudo python rudix.py install rudix && sudo rudix install jinja2"
4980
before_install:
50-
- if [ -z $OSX ] ; then sudo apt-add-repository -y ppa:kubuntu-ppa/backports ; sudo apt-get update -qq ; fi
51-
- if [ -z $OSX ] ; then sudo apt-add-repository -y ppa:dr-graef/octave-3.6.precise ; sudo apt-get update -qq ; else brew update ; fi
52-
- if [ -z $OSX ] ; then sudo apt-get install -qq libbz2-dev cdbs libarpack2-dev libatlas-base-dev libblas-dev libglpk-dev libhdf5-serial-dev zlib1g-dev libxml2-dev libreadline6-dev libreadline-dev libsnappy-dev liblzo2-dev liblzma-dev liblapack-dev gdb cmake python-jinja2 $EXTRA_PACKAGES ; else brew list cmake || brew install cmake ; fi
53-
- if [ $OSX ] ; then curl -O https://raw.github.com/rudix-mac/package-manager/master/rudix.py && sudo python rudix.py install rudix && sudo rudix install jinja2 ; fi
54-
- $CUSTOM_PKG
55-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install -I git+https://github.com/pypa/[email protected]#egg=pip ; fi
56-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install -I -U setuptools ; fi
57-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install wheel ; fi
58-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install $PIP_ARGS numpy ; fi
59-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install $PIP_ARGS scipy ; fi
60-
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then pip install --use-mirrors jinja2 ; fi
81+
- if [ -z $OSX ] ; then
82+
sudo apt-add-repository -y ppa:kubuntu-ppa/backports ;
83+
sudo apt-add-repository -y ppa:dr-graef/octave-3.6.precise ;
84+
sudo apt-add-repository -y ppa:yade-users/external ;
85+
sudo apt-add-repository -y ppa:ondrej/php5 ;
86+
sudo apt-add-repository -y ppa:robotics/ppa ;
87+
sudo apt-add-repository -y ppa:swt-techie/swig ;
88+
sudo apt-get update -qq ;
89+
else
90+
brew update ;
91+
fi
92+
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then
93+
wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh ;
94+
bash miniconda.sh -b -p $HOME/miniconda ;
95+
export PATH=$HOME/miniconda/bin:$PATH ;
96+
conda config --set always_yes yes --set changeps1 no ;
97+
conda update conda ;
98+
fi
99+
install:
100+
- if [ -z $OSX ] ; then
101+
sudo apt-get install -qq libbz2-dev cdbs libarpack2-dev libatlas-base-dev libblas-dev libglpk-dev libhdf5-serial-dev zlib1g-dev libxml2-dev libreadline6-dev libreadline-dev libsnappy-dev liblzo2-dev liblzma-dev liblapack-dev libeigen3-dev libjson-c-dev libnlopt-dev gdb cmake python-jinja2 ccache $EXTRA_PACKAGES ;
102+
else
103+
brew install ccache eigen json-c;
104+
fi
105+
- eval $CUSTOM_PKG
106+
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]] ; then conda create -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy && source activate testenv ; fi
61107
before_script:
62108
- mkdir build
63109
- cd build
110+
- cmake -DENABLE_TESTING=ON $CMAKE_OPTIONS ..
64111
script:
65-
- cmake -DENABLE_TESTING=ON -DBUNDLE_EIGEN=ON -DBUNDLE_JSON=ON -DBUNDLE_NLOPT=ON $CMAKE_OPTIONS ..
66-
- if [ -z "$CMAKE_OPTIONS" -o -n "$COVERALLS" ] ; then make -j 2 ; else make -j 4 ; fi
112+
- if [ -z "$CMAKE_OPTIONS" -o -n "$COVERALLS" ] ; then
113+
make -j 2 ;
114+
else
115+
make -j 4 ;
116+
fi
67117
- sudo make install
68118
- ctest --output-on-failure -j 2
69119
after_success:
70-
- cd ..
71-
- coveralls -e tests -e examples -e cmake -e benchmarks -e src/interfaces -e /usr/include -e build/GoogleMock -e build/NLopt -e build/Eigen3 -e build/JSON -e build/CMakeFiles -E '.*\.h' > /dev/null
120+
- if [ $COVERALLS ] ; then
121+
cd .. ;
122+
coveralls -e tests -e examples -e cmake -e benchmarks -e src/interfaces -e /usr/include -e build/GoogleMock -e build/NLopt -e build/Eigen3 -e build/JSON -e build/CMakeFiles -E '.*\.h' > /dev/null ;
123+
fi

0 commit comments

Comments
 (0)