-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
39 deletions.
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 |
---|---|---|
|
@@ -24,30 +24,30 @@ before_install: | |
|
||
install: | ||
- docker exec -t alica-test bash -c " | ||
apt-get update && | ||
apt-get update && | ||
apt-get upgrade -y && | ||
apt-get install -y | ||
apt-get install -y | ||
build-essential | ||
python-catkin-pkg | ||
python-rosdep | ||
python-wstool | ||
python-catkin-tools | ||
ros-$ROS_DISTRO-catkin | ||
python-catkin-pkg | ||
python-rosdep | ||
python-wstool | ||
python-catkin-tools | ||
ros-$ROS_DISTRO-catkin | ||
ros-$ROS_DISTRO-rostest | ||
libyaml-cpp-dev | ||
wget | ||
curl && | ||
libyaml-cpp-dev | ||
wget | ||
curl && | ||
rm -f /etc/ros/rosdep/sources.list.d/20-default.list && | ||
rosdep init && | ||
rosdep update && | ||
mkdir -p ~/catkin_ws/src && | ||
cd ~/catkin_ws/src && | ||
source /opt/ros/$ROS_DISTRO/setup.bash && | ||
catkin_init_workspace && | ||
cd ~/catkin_ws && | ||
catkin build && | ||
source devel/setup.bash && | ||
cd ~/catkin_ws/src && | ||
rosdep init && | ||
rosdep update && | ||
mkdir -p ~/catkin_ws/src && | ||
cd ~/catkin_ws/src && | ||
source /opt/ros/$ROS_DISTRO/setup.bash && | ||
catkin_init_workspace && | ||
cd ~/catkin_ws && | ||
catkin build && | ||
source devel/setup.bash && | ||
cd ~/catkin_ws/src && | ||
ln -s /travis ." | ||
|
||
# Install all dependencies, using wstool first and rosdep second. | ||
|
@@ -66,26 +66,27 @@ before_script: ./travis_scripts/before_script.sh $BRANCH $BASE_BRANCH | |
# non-zero when a test fails (which notifies Travis the build failed). | ||
script: | ||
- docker exec -t alica-test bash -c " | ||
source /opt/ros/$ROS_DISTRO/setup.bash && | ||
cd ~/catkin_ws && | ||
source /opt/ros/$ROS_DISTRO/setup.bash && | ||
cd ~/catkin_ws && | ||
./src/alica-supplementary/alica_tracing/scripts/install.sh && | ||
catkin config --cmake-args -DCMAKE_CXX_FLAGS=-Werror && | ||
catkin build --no-status && | ||
source devel/setup.bash && | ||
catkin run_tests --no-status && catkin_test_results --verbose && | ||
catkin build --no-status && | ||
source devel/setup.bash && | ||
catkin run_tests --no-status && catkin_test_results --verbose && | ||
if [ \"$TRAVIS_BRANCH\" = \"coverity_scan\" ] || [ \"$TRAVIS_EVENT_TYPE\" = \"cron\" ] ; then | ||
wget -qO- https://scan.coverity.com/download/cxx/linux64 | ||
--post-data \"token=$COVERITY_TOKEN&project=rapyuta-robotics/$COVERITY_PROJECT\" | | ||
wget -qO- https://scan.coverity.com/download/cxx/linux64 | ||
--post-data \"token=$COVERITY_TOKEN&project=rapyuta-robotics/$COVERITY_PROJECT\" | | ||
|
||
tar xvz && | ||
python /travis/generate_coverity-analysis_script.py . && | ||
chmod +x coverity-analysis.sh && | ||
./cov-analysis*/bin/cov-build --dir cov-int ./coverity-analysis.sh && | ||
tar czvf cs.tgz cov-int && | ||
curl | ||
--form token=\"$COVERITY_TOKEN\" | ||
--form email=\"$COVERITY_EMAIL\" | ||
--form [email protected] | ||
--form version=\"1.0\" | ||
--form description=\"$COVERITY_PROJECT\" | ||
https://scan.coverity.com/builds?project=rapyuta-robotics%2F$COVERITY_PROJECT ; | ||
tar xvz && | ||
python /travis/generate_coverity-analysis_script.py . && | ||
chmod +x coverity-analysis.sh && | ||
./cov-analysis*/bin/cov-build --dir cov-int ./coverity-analysis.sh && | ||
tar czvf cs.tgz cov-int && | ||
curl | ||
--form token=\"$COVERITY_TOKEN\" | ||
--form email=\"$COVERITY_EMAIL\" | ||
--form [email protected] | ||
--form version=\"1.0\" | ||
--form description=\"$COVERITY_PROJECT\" | ||
https://scan.coverity.com/builds?project=rapyuta-robotics%2F$COVERITY_PROJECT ; | ||
fi" |