|
| 1 | +dist: trusty |
| 2 | +sudo: required |
| 3 | +compiler: |
| 4 | + - gcc |
1 | 5 | language: node_js |
2 | 6 | node_js: |
3 | 7 | - "6" |
4 | 8 | - "7" |
| 9 | + - "8" |
5 | 10 | env: |
6 | | - - CMAKE_PREFIX_PATH=${TRAVIS_BUILD_DIR} |
| 11 | + global: |
| 12 | + - ROS_DISTRO=indigo |
| 13 | + - ROS_CI_DESKTOP="`lsb_release -cs`" # e.g. [precise|trusty|...] |
| 14 | + - CI_SOURCE_PATH=$(pwd) |
| 15 | + - ROSINSTALL_FILE=$CI_SOURCE_PATH/dependencies.rosinstall |
| 16 | + - CATKIN_OPTIONS=$CI_SOURCE_PATH/catkin.options |
| 17 | + - ROS_PARALLEL_JOBS='-j8 -l6' |
| 18 | + # Set the python path manually to include /usr/-/python2.7/dist-packages |
| 19 | + # as this is where apt-get installs python packages. |
| 20 | + - PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages |
| 21 | +branches: |
| 22 | + only: |
| 23 | + - kinetic-devel |
| 24 | + |
| 25 | +# Install system dependencies, namely a very barebones ROS setup. |
| 26 | +before_install: |
| 27 | + - sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list" |
| 28 | + - sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 |
| 29 | + - sudo apt-get update -qq |
| 30 | + - sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-catkin |
| 31 | + - source /opt/ros/$ROS_DISTRO/setup.bash |
| 32 | + # Prepare rosdep to install dependencies. |
| 33 | + - sudo rosdep init |
| 34 | + - rosdep update |
| 35 | + |
| 36 | +# Create a catkin workspace with the package under integration. |
| 37 | +install: |
| 38 | + - mkdir -p ~/catkin_ws/src |
| 39 | + - cd ~/catkin_ws/src |
| 40 | + - catkin_init_workspace |
| 41 | + # Create the devel/setup.bash (run catkin_make with an empty workspace) and |
| 42 | + # source it to set the path variables. |
| 43 | + - cd ~/catkin_ws |
| 44 | + - catkin_make |
| 45 | + - source devel/setup.bash |
| 46 | + |
| 47 | + # Install required message packages |
| 48 | + - git clone https://github.com/ros/std_msgs.git src/std_msgs |
| 49 | + - git clone https://github.com/ros/common_msgs src/common_msgs |
| 50 | + - git clone https://github.com/RethinkRobotics-opensource/test_msgs.git src/test_msgs |
| 51 | + - git clone https://github.com/ros/ros_comm_msgs.git src/ros_comm_msgs |
| 52 | + # Install all dependencies, using wstool first and rosdep second. |
| 53 | + # wstool looks for a ROSINSTALL_FILE defined in the environment variables. |
| 54 | + - cd ~/catkin_ws/src |
| 55 | + - wstool init |
| 56 | + - if [[ -f $ROSINSTALL_FILE ]] ; then wstool merge $ROSINSTALL_FILE ; fi |
| 57 | + - wstool up |
| 58 | + # package depdencies: install using rosdep. |
| 59 | + - cd ~/catkin_ws |
| 60 | + - rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO |
| 61 | + - source devel/setup.bash |
| 62 | + |
7 | 63 | script: |
| 64 | + - cd $CI_SOURCE_PATH |
8 | 65 | - npm install |
| 66 | + - npm run compile |
| 67 | + - npm run generate |
| 68 | + - npm test |
| 69 | + |
0 commit comments