Skip to content

Commit

Permalink
Added travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lsa committed Jan 9, 2019
1 parent 9d99cc8 commit 12b62cc
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
sudo: required
dist: trusty
language: generic
compiler:
- gcc
cache:
directories:
- $HOME/.ccache # can be any valid cache location
env:
global:
- LIBGL_ALWAYS_SOFTWARE=1
- VERBOSE_OUTPUT='false'
- CATKIN_CONFIG='--no-install'
- CATKIN_PARALLEL_JOBS='-p1'
- ROS_PARALLEL_JOBS='-j1'
- CCACHE_DIR=$HOME/.ccache
matrix:
include:
# - env: USE_DEB=true ROS_DISTRO=indigo AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh' ROSDEP_SKIP_KEYS="gazebo gazebo_msgs gazebo_plugins gazebo_ros gazebo_ros_control gazebo_ros_pkgs"
- env: USE_DEB=true ROS_DISTRO=kinetic PRERELEASE=true ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh'
# - env: USE_DEB=true ROS_DISTRO=kinetic PRERELEASE=true ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh && sh .uuv_ci_config/install_gazebo9.sh' ROSDEP_SKIP_KEYS="gazebo gazebo_msgs gazebo_plugins gazebo_ros gazebo_ros_control gazebo_ros_pkgs"
# - env: USE_DEB=true ROS_DISTRO=lunar AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh'
# - env: USE_DEB=true ROS_DISTRO=melodic AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh'
# allow_failures:
# - env: USE_DEB=true ROS_DISTRO=indigo AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh' ROSDEP_SKIP_KEYS="gazebo gazebo_msgs gazebo_plugins gazebo_ros gazebo_ros_control gazebo_ros_pkgs"
# - env: USE_DEB=true ROS_DISTRO=lunar AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh'
# - env: USE_DEB=true ROS_DISTRO=melodic AFTER_SCRIPT='sh .uuv_ci_config/run_tests.sh' ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu NOT_TEST_BUILD=true NOT_TEST_INSTALL=true BEFORE_SCRIPT='sh .uuv_ci_config/ros_$ROS_DISTRO.sh'
install:
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config
script:
- source .ci_config/travis.sh


18 changes: 18 additions & 0 deletions .usv_sim_ci_config/ros_kinetic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# Copyright (c) 2016 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

sh .uuv_ci_config/uuv_dependencies.sh

21 changes: 21 additions & 0 deletions .usv_sim_ci_config/uuv_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (c) 2016 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# DEP PACKAGES
apt -qq install --no-install-recommends --allow-unauthenticated -y \
build-essential python-catkin-tools python-pip dvi2ps dvipng binutils \
mesa-utils module-init-tools x-window-system ros-$ROS_DISTRO-python-orocos-kdl

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simulated enviroment for Unmanned Surface Vehicles (usv_sim_lsa) -- 0.2

[![Build Status](https://travis-ci.org/disaster-robotics-proalertas/usv_sim_lsa.svg?branch=develop%2Ftravis_integration)](https://travis-ci.org/disaster-robotics-proalertas/usv_sim_lsa)
[![Build Status](https://travis-ci.org/disaster-robotics-proalertas/usv_sim_lsa.svg?branch=testTravis%2Ftravis_integration)](https://travis-ci.org/disaster-robotics-proalertas/usv_sim_lsa)
[![Read the Docs](https://readthedocs.org/projects/gazebo-usv-simulation/badge/?version=latest)](http://gazebo-usv-simulation.rtfd.io/)
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/usv-sim)
[![DOI](https://zenodo.org/badge/91500138.svg)](https://zenodo.org/badge/latestdoi/91500138)
Expand Down

0 comments on commit 12b62cc

Please sign in to comment.