-
Notifications
You must be signed in to change notification settings - Fork 2
/
catkin-dry-on-wet.sh
executable file
·81 lines (66 loc) · 2.09 KB
/
catkin-dry-on-wet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/sh -e
set -x
./buildfarm/sanity_check.sh
/bin/echo "vvvvvvvvvvvvvvvvvvv catkin-workspace-all.sh vvvvvvvvvvvvvvvvvvvvvv"
if [ -z "$WORKSPACE" ] ; then
/bin/echo "Don't see no workspace."
exit 1
fi
cd $WORKSPACE
# get ros system tools
#sudo apt-get install -y python-pip
#sudo pip install --upgrade rosinstall
#sudo pip install --upgrade rosdep
if [ ! -d rosdep ]; then
hg clone https://kforge.ros.org/rosrelease/rosdep
fi
cd rosdep
hg pull
hg up
sudo python setup.py install
cd ..
sudo sh -c "echo \"deb http://packages.ros.org/ros-shadow-fixed/ubuntu $UBUNTU_DISTRO 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
#temp
sudo apt-get install -y libwxgtk2.8-dev ros-fuerte-swig-wx curl
sudo apt-get install -y python-paramiko python-crypto python-mock
export PATH=/opt/ros/fuerte/bin:$PATH
curl -s https://raw.github.com/willowgarage/catkin/master/test/test.rosinstall > test.rosinstall
rosinstall -n --delete-changed-uris src test.rosinstall
cd src
rm -f CMakeLists.txt
ln -s catkin/toplevel.cmake CMakeLists.txt
cd ..
#rm -rf build
mkdir -p build
cd build
DESTDIR=$WORKSPACE/install
rm -rf $DESTDIR
cmake -DCMAKE_INSTALL_PREFIX=$DESTDIR ../src
export ROS_HOME=$WORKSPACE/build/ros_home
export ROS_TEST_RESULTS_DIR=$WORKSPACE/build/test_results
make
#make -i test
make install
#rm -rf $WORKSPACE/dry_land
mkdir -p $WORKSPACE/dry
curl -s https://raw.github.com/willowgarage/catkin/master/test/fuerte/fuerte.rosinstall > $WORKSPACE/dry/fuerte.rosinstall
rosinstall -n --delete-changed-uris $WORKSPACE/dry $DESTDIR $WORKSPACE/dry/fuerte.rosinstall
. $DESTDIR/setup.sh
. $WORKSPACE/dry/setup.sh
rosdep install -y -a || true
export VERBOSE=1
fail=0
if ! rosmake --status-rate=0.1 -a -k; then
fail=1
fi
rosmake --status-rate=0.1 -a --test-only || true
$WORKSPACE/build/env.sh $WORKSPACE/src/ros/tools/rosunit/scripts/clean_junit_xml.py
/bin/echo "^^^^^^^^^^^^^^^^^^ catkin-workspace-all.sh ^^^^^^^^^^^^^^^^^^^^"
if [ $fail -eq 1 ]; then
echo "Build failed"
exit 1
fi
cd $WORKSPACE
$WORKSPACE/buildfarm/sanity_check.sh