From 21bba37ee2e6a25e28d2d5e32e09ab273cda3208 Mon Sep 17 00:00:00 2001 From: Philipp Schillinger Date: Fri, 11 Dec 2020 15:32:01 +0100 Subject: [PATCH] Replace travis ci by github actions --- .github/workflows/flexbe_ci.yml | 49 +++++++++++++++++++++++++++++++++ .gitignore | 2 +- .travis.yml | 17 ------------ 3 files changed, 50 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/flexbe_ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/flexbe_ci.yml b/.github/workflows/flexbe_ci.yml new file mode 100644 index 0000000..f82c408 --- /dev/null +++ b/.github/workflows/flexbe_ci.yml @@ -0,0 +1,49 @@ +# This is a basic workflow to help you get started with Actions +name: FlexBE CI +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + test: + strategy: + matrix: + ros: [kinetic, melodic, noetic] + include: + - os: ubuntu-16.04 + ros: kinetic + - os: ubuntu-18.04 + ros: melodic + - os: ubuntu-20.04 + ros: noetic + python: python3 + + runs-on: ${{ matrix.os }} + env: + ROS_DISTRO: ${{ matrix.ros }} + PYTHON: ${{ matrix.python }} + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Prepare CI + run: | + git clone https://github.com/FlexBE/flexbe_ci.git ~/flexbe_ci + source ~/flexbe_ci/setup.bash $ROS_DISTRO + - name: Install ROS + run: ~/flexbe_ci/ci_scripts/install_ros.bash + - name: Setup Workspace + run: ~/flexbe_ci/ci_scripts/setup_workspace.bash + - name: Clone FlexBE Repos + run: ~/flexbe_ci/ci_scripts/run_rosinstall.bash + - name: Test Create Repo + run: ~/flexbe_ci/ci_scripts/test_create_repo.bash + - name: Test Devel Workspace + run: ~/flexbe_ci/ci_scripts/run_devel_tests.bash + - name: Test Install Workspace + run: ~/flexbe_ci/ci_scripts/run_install_tests.bash diff --git a/.gitignore b/.gitignore index 2981c36..aa6b4a6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ nwjs/ -.*/** +.vscode/** diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 52fd8cf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: required -dist: xenial -language: generic - -before_install: - - git clone https://github.com/FlexBE/flexbe_ci.git ~/flexbe_ci - - source ~/flexbe_ci/setup.bash - - ~/flexbe_ci/ci_scripts/before_install.bash - -install: - - ~/flexbe_ci/ci_scripts/install.bash - -before_script: - - ~/flexbe_ci/ci_scripts/before_script.bash - -script: - - ~/flexbe_ci/ci_scripts/script.bash