在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:felixduvallet/ros-travis-integration开源软件地址:https://github.com/felixduvallet/ros-travis-integration开源编程语言:CMake 53.7%开源软件介绍:ROS package continuous integration with travis (now supporting Kinetic).This repository contains a .travis.yml file for setting up continuous integration (through Travis-CI) for any ROS package. Improvements & issues are welcome via pull requests and the issue tracker (while there's not a lot of active development, it is still supported). If you find this Travis file helpful, please star this repository! This repository also contains several example (i.e. trivial) ROS packages that serve as example packages for Travis to build and test. They also showcase how to correctly handle dependencies (system and source). Installation instructionsTo enable Travis continuous integration for your ROS package, first copy these files to the root of your repository:
Then, log on to travis-ci and turn on continuous integration for the repository:
From then on, any push to this repository will trigger a new Travis-ci build. About Travis-CITravis provides a clean virtual machine for each build. The .travis.yml script installs ROS, creates a fresh workspace, resolves all given dependencies, and sets environment variables (devel/setup.bash). Then, it compiles the entire ROS workspace (ensuring there are no missing dependencies or compilation errors), and runs any available unit tests. If any of the compilation/test phases fail, the build is marked as a failure. Otherwise, it's a clean build. For more information on Travis CI, see their documentation: http://docs.travis-ci.com/ Handling Dependencies:ROS can handle two types of package dependencies specified in the package manifest:
NOTE: All dependencies should be handled in one of these fashions; you should not install packages by modifying the .travis.yml file. If you are missing a package, it's most likely that you haven't defined the dependency in package.xml. Note that any packages located inside your catkin workspace will take precendence over the rosdistro system-wide package. This allows you to use the cutting-edge version of a package directly from source. For public builds (i.e. when using travis-ci.org), The example package When building your own package, make sure to remove the contents of dependencies.rosinstall and add your package's source dependencies instead. Build matrixThe .travis.yml defines a build matrix specifying which combinations of Ubuntu distribution and ROS version should be used. Currently, the list of supported pairs is:
Note that some pairs are not possible (e.g. kinetic on trusty or indigo on xenial). The debian packages must be available for the appropriate ubuntu release. ROS variables:The .travis.yml file has some environment variables you can change to customize your build: defined in the script which are used to parametrize the build:
Private repositories:Travis-ci.com can build a private repository. However if your package has dependencies that are also private, you have to go through additional steps. The instructions are generally listed here: http://docs.travis-ci.com/user/private-dependencies/ At a high level, you shoud:
The example packagesThis repository contain some example packages to:
The packages are:
You can look at the Travis build log to see exactly how it resolves dependencies and then builds the package. |
2022-08-15
2022-08-17
2023-10-27
2022-09-23
2022-08-18
请发表评论