Skip to content

Commit 653f25d

Browse files
authored
Merge pull request #159 from jcarpent/devel
Sync submodule CMake
2 parents 0fb2a72 + 3eba23f commit 653f25d

File tree

5 files changed

+52
-18
lines changed

5 files changed

+52
-18
lines changed

.travis.yml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
language: python
2-
sudo: required
1+
language: cpp
32
git:
43
depth: false
54
compiler:
@@ -8,40 +7,55 @@ compiler:
87
env:
98
global:
109
- secure: "SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c="
11-
- APT_DEPENDENCIES="doxygen libeigen3-dev libboost-test-dev libboost-python-dev"
10+
- APT_DEPENDENCIES="doxygen libeigen3-dev libboost-test-dev libboost-python-dev python-numpy"
1211
- DEBSIGN_KEYID=5AE5CD75
1312
- CC=gcc
1413
- DO_COVERAGE_ON_BRANCH="master;release"
1514
- DO_CPPCHECK_ON_BRANCH=""
1615
- DO_INSTALL_DOC_EXCEPT_ON_BRANCH=""
17-
- BUILD_WITH_CATKIN_SUPPORT=false
1816
- MAKEFLAGS="-j2"
1917

2018
jobs:
2119
include:
2220
- dist: bionic
23-
env: BUILDTYPE=Release
21+
env:
22+
- BUILDTYPE=Release
23+
- TRAVIS_PYTHON_VERSION=27
2424
python: 2.7
2525
- dist: bionic
26-
env: BUILDTYPE=Release
26+
env:
27+
- BUILDTYPE=Release
28+
- TRAVIS_PYTHON_VERSION=36
2729
python: 3.6
2830
- dist: bionic
29-
env: BUILDTYPE=Debug
31+
env:
32+
- BUILDTYPE=Debug
33+
- TRAVIS_PYTHON_VERSION=27
3034
python: 2.7
3135
- dist: bionic
32-
env: BUILDTYPE=Debug
36+
env:
37+
- BUILDTYPE=Debug
38+
- TRAVIS_PYTHON_VERSION=36
3339
python: 3.6
3440
- dist: xenial
35-
env: BUILDTYPE=Release
41+
env:
42+
- BUILDTYPE=Release
43+
- TRAVIS_PYTHON_VERSION=27
3644
python: 2.7
3745
- dist: xenial
38-
env: BUILDTYPE=Release
46+
env:
47+
- BUILDTYPE=Release
48+
- TRAVIS_PYTHON_VERSION=35
3949
python: 3.5
4050
- dist: trusty
41-
env: BUILDTYPE=Release
51+
env:
52+
- BUILDTYPE=Release
53+
- TRAVIS_PYTHON_VERSION=27
4254
python: 2.7
4355
- dist: trusty
44-
env: BUILDTYPE=Release
56+
env:
57+
- BUILDTYPE=Release
58+
- TRAVIS_PYTHON_VERSION=34
4559
python: 3.4
4660

4761
notifications:
@@ -52,16 +66,18 @@ branches:
5266
- master
5367
- debian
5468
- devel
55-
before_install: ./.travis/run before_install
56-
install: pip install coveralls numpy
69+
before_install: ./travis_custom/custom_before_install
70+
install: pip install coveralls numpy --user
5771
script:
5872
- export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
5973
- ./.travis/run ../travis_custom/custom_build
6074
- cd $TRAVIS_BUILD_DIR/unittest/cmake
6175
- mkdir build
6276
- cd build
6377
- export CMAKE_PREFIX_PATH=/tmp/_ci/install
64-
- cmake ..
78+
- export PYTHON_DEFAULT_VERSION=$(which python2)
79+
- if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then export PYTHON_DEFAULT_VERSION=$(which python3); fi
80+
- cmake .. -DPYTHON_EXECUTABLE=$PYTHON_DEFAULT_VERSION
6581
- make
6682
- ./extra_lib
6783
- cd /tmp/_ci/build

cmake

Submodule cmake updated 1 file

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="2">
33
<name>eigenpy</name>
4-
<version>2.0.2</version>
4+
<version>2.0.3</version>
55
<description>Bindings between Numpy and Eigen using Boost.Python</description>
66
<maintainer email="[email protected]">Justin Carpentier</maintainer>
77
<maintainer email="[email protected]">Wolfgang Merkt</maintainer>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Add Python dependency
4+
echo "TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION"
5+
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
6+
export APT_DEPENDENCIES=$APT_DEPENDENCIES" python3-numpy"
7+
fi
8+
9+
# When this script is called the current directory is ./custom_travis
10+
. ./.travis/run ../.travis/before_install
11+
12+
# Git fetch tags
13+
git fetch --tags
14+

travis_custom/custom_build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
set -e
33

44
# Setup environment variables.
5-
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DBUILD_BENCHMARK=\"ON\" -DBUILD_UNIT_TESTS=\"ON\" -DCMAKE_CXX_FLAGS=-DBOOST_SYSTEM_NO_DEPRECATED -DPYTHON_EXECUTABLE=$(which python)"
5+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DBUILD_BENCHMARK=\"ON\" -DBUILD_TESTING=\"ON\" -DCMAKE_CXX_FLAGS=-DBOOST_SYSTEM_NO_DEPRECATED"
66
if [[ ";${DO_INSTALL_DOC_EXCEPT_ON_BRANCH};" == *";${CI_BRANCH};"* ]]; then
77
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"OFF\""
88
else
99
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"ON\""
1010
fi
1111

12+
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
13+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DPYTHON_EXECUTABLE=$(which python3)"
14+
fi
15+
1216
# Setup environment variables.
1317
. ./.travis/run ../.travis/build
1418

0 commit comments

Comments
 (0)