@@ -6,45 +6,26 @@ node_js:
6
6
- " 2"
7
7
- " 3"
8
8
- " 4"
9
- addons :
10
- firefox : " 31.0" # 3.4->31.0
11
- os :
12
- - linux
9
+ env :
10
+ - ROS_DISTRO=hydro
11
+
13
12
before_install :
14
13
# ROS deps for examples
15
14
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
16
15
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
17
16
- sudo apt-get update -qq
18
- - sudo apt-get install ros-hydro-ros-base
19
- # temp local install of tf2_web_republisher
20
- # - sudo apt-get install ros-hydro-rosbridge-server ros-hydro-tf2-web-republisher ros-hydro-common-tutorials ros-hydro-rospy-tutorials ros-hydro-actionlib-tutorials
21
- - sudo apt-get install ros-hydro-rosbridge-server ros-hydro-common-tutorials ros-hydro-rospy-tutorials ros-hydro-actionlib-tutorials
22
- - sudo apt-get install python-catkin-pkg python-rosdep ros-hydro-catkin -qq
23
- - sudo rosdep init
24
- - rosdep update
25
- - mkdir -p /tmp/ws/src
26
- - ln -s `pwd` /tmp/ws/roslibjs
27
- - cd /tmp/ws/src
28
- - git clone https://github.com/RobotWebTools/tf2_web_republisher.git
29
- - cd ../
30
- - rosdep install --from-paths src --ignore-src --rosdistro hydro -y
31
- - cd /tmp/ws/roslibjs
17
+ - sudo apt-get install -qq ros-$ROS_DISTRO-ros ros-$ROS_DISTRO-catkin python-catkin-pkg python-rosdep
18
+ - sudo apt-get install -qq ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials
32
19
33
20
# Only update npm in the 0.8 and 0.10 versions to not run into this issue:
34
21
# https://github.com/nodejs/node/issues/433
35
22
- case ${TRAVIS_NODE_VERSION} in 0.8*|0.10*) npm update -g npm ;; esac
36
- - npm install -g grunt-cli karma-cli
37
23
38
24
# Set up Xfvb for Firefox headless testing
39
25
- " export DISPLAY=:99.0"
40
26
- " sh -e /etc/init.d/xvfb start"
41
27
before_script :
42
- - source /opt/ros/hydro/setup.bash
43
- - cd /tmp/ws
44
- - catkin_make
45
- - catkin_make install
46
- - source install/setup.bash
47
- - cd /tmp/ws/roslibjs
28
+ - source /opt/ros/$ROS_DISTRO/setup.bash
48
29
- sh test/examples/setup_examples.sh
49
30
script :
50
31
- rostopic list
0 commit comments