未验证 提交 8c2fc670 编写于 作者: K Kei Okada 提交者: GitHub

Merge pull request #84 from k-okada/add_travis

update travis.yml for noetic and remove find_package(Boost signales)
language: cpp
compiler:
- gcc
- clang
# this is .traivs.yml written by -
# https://github.com/ros-infrastructure/ros_buildfarm/blob/master/doc/jobs/devel_jobs.rst
# https://github.com/ros-infrastructure/ros_buildfarm/blob/master/doc/jobs/prerelease_jobs.rst
# while this doesn't require sudo we don't want to run within a Docker container
sudo: true
dist: trusty
language: python
python:
- "3.6"
env:
global:
- JOB_PATH=/tmp/devel_job
- ABORT_ON_TEST_FAILURE=1
matrix:
- ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
- ROS_DISTRO_NAME=melodic OS_NAME=ubuntu OS_CODE_NAME=bionic ARCH=amd64
- ROS_DISTRO_NAME=noetic OS_NAME=ubuntu OS_CODE_NAME=focal ARCH=amd64
# matrix:
# allow_failures:
# - env: ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
install:
- export CI_ROS_DISTRO=hydro
- echo $CI_ROS_DISTRO
# Add ROS repositories
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update
# Install and initialize rosdep
- sudo apt-get install python-rosdep
- sudo `which rosdep` init
- rosdep update
# Use rosdep to install rviz's dependencies
- rosdep install --default-yes --from-paths ./ --rosdistro $CI_ROS_DISTRO
# either install the latest released version of ros_buildfarm
- pip install ros_buildfarm
# or checkout a specific branch
#- git clone -b master https://github.com/ros-infrastructure/ros_buildfarm /tmp/ros_buildfarm
#- pip install /tmp/ros_buildfarm
# checkout catkin for catkin_test_results script
- git clone https://github.com/ros/catkin /tmp/catkin
# run devel job for a ROS repository with the same name as this repo
- export REPOSITORY_NAME=`basename $TRAVIS_BUILD_DIR`
# use the code already checked out by Travis
- mkdir -p $JOB_PATH/ws/src
- cp -R $TRAVIS_BUILD_DIR $JOB_PATH/ws/src/
# generate the script to run a pre-release job for that target and repo
- generate_prerelease_script.py https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml $ROS_DISTRO_NAME default $OS_NAME $OS_CODE_NAME $ARCH --output-dir $JOB_PATH
# run the actual job which involves Docker
- cd $JOB_PATH; sh ./prerelease.sh -y
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=./install
- make -j1
- make -j1 tests
- make -j1 run_tests
- catkin_test_results .
- make -j1 install
# get summary of test results
- /tmp/catkin/bin/catkin_test_results $JOB_PATH/ws/test_results --all
notifications:
email: false
slam_gmapping [![Build Status](https://travis-ci.com/ros-perception/slam_gmapping.svg?branch=melodic-devel)](https://travis-ci.org/ros-perception/slam_gmapping)
================================================================================================================================================================
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册