Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
veerajsk committed Oct 22, 2021
1 parent 5746d9c commit 470548d
Showing 1 changed file with 40 additions and 39 deletions.
79 changes: 40 additions & 39 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"

0 comments on commit 470548d

Please sign in to comment.