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