Skip to content

Commit

Permalink
Remove travis in favor of github actions (#160)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <michael@openrobotics.org>
  • Loading branch information
mjcarroll committed Jun 10, 2021
1 parent 4e7da5b commit 56bfb05
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .travis/build → .github/workflows/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export CATKIN_WS_SRC=${CATKIN_WS}/src
export DEBIAN_FRONTEND=noninteractive

apt update -qq
apt install -qq -y lsb-release wget curl
apt install -qq -y lsb-release wget curl build-essential

if [ "$IGNITION_VERSION" == "blueprint" ]; then
IGN_DEPS="libignition-msgs4-dev libignition-transport7-dev libignition-gazebo2-dev"
Expand Down Expand Up @@ -49,7 +49,7 @@ rosdep install --from-paths ./ -i -y --rosdistro $ROS_DISTRO \
# Build.
source /opt/ros/$ROS_DISTRO/setup.bash
mkdir -p $CATKIN_WS_SRC
ln -s /code $CATKIN_WS_SRC
ln -s $GITHUB_WORKSPACE $CATKIN_WS_SRC
cd $CATKIN_WS
catkin init
catkin config --install
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/melodic-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Melodic CI

on:
pull_request:
push:
branches:
- melodic
schedule:
# Run the CI automatically once per day to look for flakyness.
- cron: "0 0 * * *"

jobs:
ros_ign_ci:
name: ros_ign CI
runs-on: ubuntu-latest
strategy:
matrix:
include:
- docker-image: "ubuntu:18.04"
ignition-version: "citadel"
ros-distro: "melodic"
- docker-image: "ubuntu:18.04"
ignition-version: "dome"
ros-distro: "melodic"
container:
image: ${{ matrix.docker-image }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: .github/workflows/build-and-test.sh
env:
DOCKER_IMAGE: ${{ matrix.docker-image }}
IGNITION_VERSION: ${{ matrix.ignition-version }}
ROS_DISTRO: ${{ matrix.ros-distro }}

28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit 56bfb05

Please sign in to comment.