Skip to content
Snippets Groups Projects
Verified Commit 922e5c28 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

travis: fix numpy for Python3

parent 3c501651
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ env:
- DO_COVERAGE_ON_BRANCH="master;release"
- DO_CPPCHECK_ON_BRANCH=""
- DO_INSTALL_DOC_EXCEPT_ON_BRANCH=""
- BUILD_WITH_CATKIN_SUPPORT=false
- MAKEFLAGS="-j2"
jobs:
......@@ -67,7 +66,7 @@ branches:
- master
- debian
- devel
before_install: ./.travis/run before_install
before_install: ./travis_custom/custom_before_install
install: pip install coveralls numpy --user
script:
- export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE}"
......
#!/bin/bash
# Add Python dependency
echo "TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION"
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
export APT_DEPENDENCIES=$APT_DEPENDENCIES" python3-numpy"
fi
# When this script is called the current directory is ./custom_travis
. ./.travis/run ../.travis/before_install
# Git fetch tags
git fetch --tags
......@@ -11,7 +11,6 @@ fi
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DPYTHON_EXECUTABLE=$(which python3)"
pip3 install numpy --user
fi
# Setup environment variables.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment