From 1e86a63d1111dbd56cb15bff53a4a5c912b0d1e7 Mon Sep 17 00:00:00 2001
From: Will Son <willson@robotis.com>
Date: Wed, 7 Apr 2021 13:30:53 +0900
Subject: [PATCH] use github action ci

---
 .github/workflows/ros-ci.yml | 52 ++++++++++++++++++++++++++++++++++++
 .travis.yml                  | 35 ------------------------
 README.md                    | 18 ++++++-------
 3 files changed, 61 insertions(+), 44 deletions(-)
 create mode 100644 .github/workflows/ros-ci.yml
 delete mode 100644 .travis.yml

diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml
new file mode 100644
index 0000000..a140ed7
--- /dev/null
+++ b/.github/workflows/ros-ci.yml
@@ -0,0 +1,52 @@
+name: ros-ci
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+on:
+  push:
+    branches: [ develop ]
+  pull_request:
+    branches: [ develop ]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+  develop-ci:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        ros_distribution:
+          # - kinetic
+          # - melodic
+          - noetic
+        include:
+            # Kinetic Kame (May 2016 - May 2021)
+          # - docker_image: ubuntu:xenial
+          #   ros_distribution: kinetic
+          #   ros_version: 1
+            # Melodic Morenia (May 2018 - May 2023)
+          # - docker_image: ubuntu:bionic
+          #   ros_distribution: melodic
+          #   ros_version: 1
+            # Noetic Ninjemys (May 2020 - May 2025)
+          - docker_image: ubuntu:focal
+            ros_distribution: noetic
+            ros_version: 1
+    container:
+      image: ${{ matrix.docker_image }}
+    steps:
+      - name: Setup directories
+        run: mkdir -p ros_ws/src
+      - name: checkout
+        uses: actions/checkout@v2
+        with:
+          path: ros_ws/src
+      - name: Setup ROS environment
+        uses: ros-tooling/setup-ros@0.1.2
+        with:
+          required-ros-distributions: ${{ matrix.ros_distribution }}
+      - name: Build and Test
+        uses: ros-tooling/action-ros-ci@v0.2
+        with:
+          package-name: turtlebot3
+          target-ros1-distro: ${{ matrix.ros_distribution }}
+          vcs-repo-file-url: ""
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index f25e84d..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-# This config file for Travis CI utilizes ros-industrial/industrial_ci package.
-# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst
-
-sudo: required
-dist: trusty
-services:
-  - docker
-language: generic
-python:
-  - "2.7"
-compiler:
-  - gcc
-notifications:
-  email:
-    on_success: change
-    on_failure: always
-    recipients:
-      - willson@robotis.com
-env:
-  matrix:
-    - ROS_DISTRO=kinetic ROS_REPO=ros-shadow-fixed UPSTREAM_WORKSPACE=debian OS_NAME=ubuntu OS_CODE_NAME=xenial
-    - ROS_DISTRO=melodic ROS_REPO=ros-shadow-fixed UPSTREAM_WORKSPACE=debian OS_NAME=ubuntu OS_CODE_NAME=bionic
-    - ROS_DISTRO=noetic ROS_REPO=ros-shadow-fixed UPSTREAM_WORKSPACE=debian OS_NAME=ubuntu OS_CODE_NAME=focal
-branches:
-  only:
-    - master
-    - develop
-    - kinetic-devel
-    - melodic-devel
-    - noetic-devel
-    
-install:
-  - git clone https://github.com/ros-industrial/industrial_ci.git .ci_config
-script:
-  - source .ci_config/travis.sh
diff --git a/README.md b/README.md
index cd5b9e8..b8820be 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
 # TurtleBot3
 <img src="https://github.com/ROBOTIS-GIT/emanual/blob/master/assets/images/platform/turtlebot3/logo_turtlebot3.png" width="300">
 
-## ROS 1 Packages for TurtleBot3
-|develop|master|Kinetic + Ubuntu Xenial|Melodic + Ubuntu Bionic|Noetic + Ubuntu Focal|
-|:---:|:---:|:---:|:---:|:---:|
-|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=develop)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=master)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=kinetic-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=melodic-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=noetic-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|
-
-## ROS 2 Packages for TurtleBot3
-|ros2-devel|ros2|Dashing + Ubuntu Bionic|Foxy + Ubuntu Focal|
-|:---:|:---:|:---:|:---:|
-|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=ros2-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=ros2)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=dashing-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|[![Build Status](https://travis-ci.org/ROBOTIS-GIT/turtlebot3.svg?branch=foxy-devel)](https://travis-ci.org/ROBOTIS-GIT/turtlebot3)|
+[![kinetic-devel Status](https://github.com/ROBOTIS-GIT/turtlebot3/workflows/kinetic-devel/badge.svg)](https://github.com/ROBOTIS-GIT/turtlebot3/tree/kinetic-devel)
+
+[![melodic-devel Status](https://github.com/ROBOTIS-GIT/turtlebot3/workflows/melodic-devel/badge.svg)](https://github.com/ROBOTIS-GIT/turtlebot3/tree/melodic-devel)
+
+[![noetic-devel Status](https://github.com/ROBOTIS-GIT/turtlebot3/workflows/noetic-devel/badge.svg)](https://github.com/ROBOTIS-GIT/turtlebot3/tree/noetic-devel)
+
+[![dashing-devel Status](https://github.com/ROBOTIS-GIT/turtlebot3/workflows/dashing-devel/badge.svg)](https://github.com/ROBOTIS-GIT/turtlebot3/tree/dashing-devel)
+
+[![foxy-devel Status](https://github.com/ROBOTIS-GIT/turtlebot3/workflows/foxy-devel/badge.svg)](https://github.com/ROBOTIS-GIT/turtlebot3/tree/foxy-devel)
 
 ## ROBOTIS e-Manual for TurtleBot3
 - [ROBOTIS e-Manual for TurtleBot3](http://turtlebot3.robotis.com/)
-- 
GitLab