-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Travis test #5
Open
mohamedsayed18
wants to merge
18
commits into
tests
Choose a base branch
from
travis_test
base: tests
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Travis test #5
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a029c06
travis_try
mohamedsayed18 5b3e4a7
travis_badge
mohamedsayed18 1dae30f
fix_tests
mohamedsayed18 e0101f6
change_travis_directory
mohamedsayed18 6650975
clean_my_repo
mohamedsayed18 084f1c1
orientation
mohamedsayed18 24b1dbd
Readme
mohamedsayed18 2225c62
chmod
mohamedsayed18 2195813
unit_test
mohamedsayed18 386788b
python_run
mohamedsayed18 c524899
travis_yml
mohamedsayed18 64e76fe
simple_py
mohamedsayed18 01ff556
clean
mohamedsayed18 d1dec3c
fix_travis_yml
mohamedsayed18 e99b50a
simple_test
mohamedsayed18 7d90a1a
simtest
mohamedsayed18 3de0a67
remove_test
mohamedsayed18 360027c
fix_tra
mohamedsayed18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# Generic .travis.yml file for running continuous integration on Travis-CI for | ||
# any ROS package. | ||
# | ||
# Available here: | ||
# - https://github.com/felixduvallet/ros-travis-integration | ||
# | ||
# This installs ROS on a clean Travis-CI virtual machine, creates a ROS | ||
# workspace, resolves all listed dependencies, and sets environment variables | ||
# (setup.bash). Then, it compiles the entire ROS workspace (ensuring there are | ||
# no compilation errors), and runs all the tests. If any of the compilation/test | ||
# phases fail, the build is marked as a failure. | ||
# | ||
# We handle two types of package dependencies specified in the package manifest: | ||
# - system dependencies that can be installed using `rosdep`, including other | ||
# ROS packages and system libraries. These dependencies must be known to | ||
# `rosdistro` and are installed using apt-get. | ||
# - package dependencies that must be checked out from source. These are handled by | ||
# `wstool`, and should be listed in a file named dependencies.rosinstall. | ||
# | ||
|
||
# There are envioronment variables you may want to change, such as ROS_DISTRO, | ||
# ROSINSTALL_FILE, and the CATKIN_OPTIONS file. See the README.md for more | ||
# information on these flags, and | ||
# https://docs.travis-ci.com/user/environment-variables/ for information about | ||
# Travis environment variables in general. | ||
# | ||
# Author: Felix Duvallet <felixd@gmail.com> | ||
|
||
# NOTE: The build lifecycle on Travis.ci is something like this: | ||
# before_install | ||
# install | ||
# before_script | ||
# script | ||
# after_success or after_failure | ||
# after_script | ||
# OPTIONAL before_deploy | ||
# OPTIONAL deploy | ||
# OPTIONAL after_deploy | ||
|
||
################################################################################ | ||
|
||
sudo: required | ||
cache: | ||
- apt | ||
|
||
# Build all valid Ubuntu/ROS combinations available on Travis VMs. | ||
language: generic | ||
matrix: | ||
include: | ||
- name: "Trusty indigo" | ||
dist: trusty | ||
env: ROS_DISTRO=indigo | ||
- name: "Xenial kinetic" | ||
dist: xenial | ||
env: ROS_DISTRO=kinetic | ||
|
||
# Configuration variables. All variables are global now, but this can be used to | ||
# trigger a build matrix for different ROS distributions if desired. | ||
env: | ||
global: | ||
- ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [trusty|xenial|...] | ||
- CI_SOURCE_PATH=$(pwd) | ||
- ROSINSTALL_FILE=$CI_SOURCE_PATH/dependencies.rosinstall | ||
- CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options | ||
- ROS_PARALLEL_JOBS='-j8 -l6' | ||
# Set the python path manually to include /usr/-/python2.7/dist-packages | ||
# as this is where apt-get installs python packages. | ||
- PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages | ||
|
||
################################################################################ | ||
|
||
# Install system dependencies, namely a very barebones ROS setup. | ||
before_install: | ||
- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list" | ||
- sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | ||
- sudo apt-get update -qq | ||
- sudo apt-get install dpkg | ||
- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-ros-base | ||
- source /opt/ros/$ROS_DISTRO/setup.bash | ||
# Prepare rosdep to install dependencies. | ||
- sudo rosdep init | ||
- rosdep update --include-eol-distros # Support EOL distros. | ||
|
||
# Create a catkin workspace with the package under integration. | ||
install: | ||
- mkdir -p ~/catkin_ws/src | ||
- cd ~/catkin_ws/src | ||
- catkin_init_workspace | ||
# Create the devel/setup.bash (run catkin_make with an empty workspace) and | ||
# source it to set the path variables. | ||
- cd ~/catkin_ws | ||
- catkin_make | ||
- source devel/setup.bash | ||
# Add the package under integration to the workspace using a symlink. | ||
- cd ~/catkin_ws/src | ||
- ln -s $CI_SOURCE_PATH . | ||
|
||
# Install all dependencies, using wstool first and rosdep second. | ||
# wstool looks for a ROSINSTALL_FILE defined in the environment variables. | ||
before_script: | ||
# source dependencies: install using wstool. | ||
- cd ~/catkin_ws/src | ||
- wstool init | ||
- if [[ -f $ROSINSTALL_FILE ]] ; then wstool merge $ROSINSTALL_FILE ; fi | ||
- wstool up | ||
# package depdencies: install using rosdep. | ||
- cd ~/catkin_ws | ||
- rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO | ||
|
||
# Compile and test (mark the build as failed if any step fails). If the | ||
# CATKIN_OPTIONS file exists, use it as an argument to catkin_make, for example | ||
# to blacklist certain packages. | ||
# | ||
# NOTE on testing: `catkin_make run_tests` will show the output of the tests | ||
# (gtest, nosetest, etc..) but always returns 0 (success) even if a test | ||
# fails. Running `catkin_test_results` aggregates all the results and returns | ||
# non-zero when a test fails (which notifies Travis the build failed). | ||
script: | ||
- source /opt/ros/$ROS_DISTRO/setup.bash | ||
- cd ~/catkin_ws | ||
- catkin_make $( [ -f $CATKIN_OPTIONS ] && cat $CATKIN_OPTIONS ) | ||
# Run the tests, ensuring the path is set correctly. | ||
- source devel/setup.bash | ||
#- catkin_make run_tests && catkin_test_results | ||
- rostest tests integration.launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it work with indigo? where is melodic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm working with kintec