Unverified Commit 9e5a6218 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #1444 from jcarpent/topic/ci

Remove travis CI + minor CI updates
parents b22c502e 8b56bd12
Pipeline #14258 passed with stage
in 152 minutes and 53 seconds
...@@ -85,7 +85,7 @@ jobs: ...@@ -85,7 +85,7 @@ jobs:
set PATH=%PATH%;%CONDA_PREFIX%\Library\bin set PATH=%PATH%;%CONDA_PREFIX%\Library\bin
.\unittest\Release\test-cpp-urdf.exe .\unittest\Release\test-cpp-urdf.exe
.\examples\Release\example-cpp-geometry-models.exe .\examples\Release\example-cpp-geometry-models.exe
ctest --output-on-failure -C Release -V --repeat until-pass:5 ctest --output-on-failure -C Release -V --repeat until-pass:1
# :: Test Python import # :: Test Python import
# cd .. # cd ..
......
language: generic
os: linux
git:
depth: false
compiler:
- gcc
cache:
ccache: true
env:
global:
- secure: "SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c="
- APT_DEPENDENCIES="doxygen libeigen3-dev "
- DEBSIGN_KEYID=5AE5CD75
- LCOV_IGNORE_RULES="*unittest* /opt/openrobots/*"
- DO_COVERAGE_ON_BRANCH="master;release"
- DO_CPPCHECK_ON_BRANCH=""
- DO_INSTALL_DOC_EXCEPT_ON_BRANCH=""
- BUILDTYPE=Release
- BUILD_WITH_CATKIN_SUPPORT=false
- CTEST_OUTPUT_ON_FAILURE=1
branches:
only:
- master
- debian
- devel
jobs:
include:
- dist: bionic
env:
- BUILD_WITH_COLLISION_SUPPORT=OFF
- TRAVIS_PYTHON_VERSION=27
- TRAVIS_PYTHON_VERSION_WITH_DOT=2.7
python: 2.7
- dist: bionic
env:
- BUILD_WITH_COLLISION_SUPPORT=ON
- TRAVIS_PYTHON_VERSION=27
- TRAVIS_PYTHON_VERSION_WITH_DOT=2.7
python: 2.7
- dist: bionic
env:
- BUILD_WITH_COLLISION_SUPPORT=ON
- TRAVIS_PYTHON_VERSION=36
- TRAVIS_PYTHON_VERSION_WITH_DOT=3.6
python: 3.6
before_install: ./travis_custom/custom_before_install
install:
- pip install --user pyopenssl
- pip install --user numpy
script:
- export CMAKE_ADDITIONAL_OPTIONS="-DCMAKE_BUILD_TYPE=${BUILDTYPE} -DBUILD_WITH_COLLISION_SUPPORT=${BUILD_WITH_COLLISION_SUPPORT} -DBUILD_ADVANCED_TESTING=ON"
- export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH
- travis_wait 60 ./.travis/run ../travis_custom/custom_build
after_failure: ./.travis/run after_failure
after_success:
- ./.travis/run after_success
#!/bin/bash
set -e
# Set debug mode
set -x
set -v
# Add robotpkg
sudo sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list "
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
sudo apt update
# show memory usage before install
sudo free -m -t
# Setup environment variables.
export APT_DEPENDENCIES="doxygen libboost-system-dev libboost-test-dev libboost-filesystem-dev libboost-program-options-dev libeigen3-dev liburdfdom-dev texlive-font-utils libmpfr-dev"
# Add Python dependency
echo "TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION"
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
export APT_DEPENDENCIES=$APT_DEPENDENCIES" libboost-python-dev robotpkg-py36-eigenpy python3.6-dev python-numpy"
else
export APT_DEPENDENCIES=$APT_DEPENDENCIES" libboost-python-dev robotpkg-py27-eigenpy python2.7-dev python-numpy"
fi
# Add Geometry dependencies
if [[ $BUILD_WITH_COLLISION_SUPPORT -eq ON ]]; then
export APT_DEPENDENCIES=$APT_DEPENDENCIES" robotpkg-hpp-fcl robotpkg-py${TRAVIS_PYTHON_VERSION}-hpp-fcl"
fi
# When this script is called the current directory is ./custom_travis
. ./.travis/run ../.travis/before_install
# Git fetch tags
git fetch --tags
git tag
# End debug mode
set +v
set +x
#!/bin/bash
set -e
# Set debug mode
set -x
set -v
if [[ $TRAVIS_PYTHON_VERSION -gt 30 ]]; then
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DPYTHON_EXECUTABLE=$(which python3)"
fi
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DBUILD_BENCHMARK=\"ON\" -DBUILD_TESTING=\"ON\" -DCMAKE_CXX_FLAGS=-DBOOST_SYSTEM_NO_DEPRECATED"
if [[ ";${DO_INSTALL_DOC_EXCEPT_ON_BRANCH};" == *";${CI_BRANCH};"* ]]; then
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"OFF\""
else
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"ON\""
fi
export CMAKE_ADDITIONAL_OPTIONS="${CMAKE_ADDITIONAL_OPTIONS} -DDISABLE_DEPRECATED_MACRO_WARNING=\"ON\""
export CMAKE_ADDITIONAL_OPTIONS="${CMAKE_ADDITIONAL_OPTIONS} -DCMAKE_CXX_FLAGS_DEBUG=\"-O1\""
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/openrobots/lib/pkgconfig"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/openrobots/lib"
export PYTHONPATH="${PYTHONPATH}:/opt/openrobots/lib/python${TRAVIS_PYTHON_VERSION_WITH_DOT}/site-packages"
export MAKEFLAGS="-j2"
# Setup environment variables.
./.travis/run ../.travis/build
# End debug mode
set +v
set +x
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment