Skip to content

Test more node versions in travis #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 12 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,28 @@
language: node_js
node_js:
- "0.10"
addons:
firefox: "31.0" # 3.4->31.0
os:
- linux
- "0.12"
- "4"
env:
- ROS_DISTRO=hydro

before_install:
# ROS deps for examples
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise 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 -qq
- sudo apt-get install ros-hydro-ros-base
# temp local install of tf2_web_republisher
# - 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
- sudo apt-get install ros-hydro-rosbridge-server ros-hydro-common-tutorials ros-hydro-rospy-tutorials ros-hydro-actionlib-tutorials
- sudo apt-get install python-catkin-pkg python-rosdep ros-hydro-catkin -qq
- sudo rosdep init
- rosdep update
- mkdir -p /tmp/ws/src
- ln -s `pwd` /tmp/ws/roslibjs
- cd /tmp/ws/src
- git clone https://github.com/RobotWebTools/tf2_web_republisher.git
- cd ../
- rosdep install --from-paths src --ignore-src --rosdistro hydro -y
- cd /tmp/ws/roslibjs
- npm install -g npm
- npm install -g grunt-cli karma-cli
- sudo apt-get install -qq ros-$ROS_DISTRO-ros ros-$ROS_DISTRO-catkin python-catkin-pkg python-rosdep
- 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

# Only update npm in the 0.8 and 0.10 versions to not run into this issue:
# https://github.com/nodejs/node/issues/433
- case ${TRAVIS_NODE_VERSION} in 0.8*|0.10*) npm update -g npm ;; esac

# Set up Xfvb for Firefox headless testing
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- source /opt/ros/hydro/setup.bash
- cd /tmp/ws
- catkin_make
- catkin_make install
- source install/setup.bash
- cd /tmp/ws/roslibjs
- source /opt/ros/$ROS_DISTRO/setup.bash
- sh test/examples/setup_examples.sh
script:
- rostopic list
Expand Down
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,30 @@
"./src/util/decompressPng.js": "./src/util/shim/decompressPng.js"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-browserify": "^3.0.1",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.3.1",
"grunt-jsdoc": "~0.6.0",
"grunt": "^0.4.1",
"grunt-browserify": "^4.0.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contrib-uglify": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
"grunt-jsdoc": "^1.0.0",
"grunt-karma": "^0.12.0",
"grunt-mocha-test": "^0.11.0",
"grunt-mocha-test": "^0.12.7",
"karma": "^0.13.9",
"karma-chai": "^0.1.0",
"karma-firefox-launcher": "~0.1.3",
"karma-mocha": "^0.1.9",
"chai": "*",
"load-grunt-tasks": "^0.6.0",
"karma-firefox-launcher": "^0.1.3",
"karma-mocha": "^0.2.0",
"load-grunt-tasks": "^3.3.0",
"mocha": "^2.3.3",
"time-grunt": "^1.0.0"
},
"dependencies": {
"eventemitter2": "~0.4.13",
"object-assign": "^2.0.0",
"eventemitter2": "^0.4.13",
"object-assign": "^4.0.1",
"pngparse": "^2.0.1",
"ws": "^0.4.32",
"ws": "^0.8.0",
"xmldom": "^0.1.19"
},
"directories": {
Expand Down