From 85137dc628dde2c34ae8436650ec313f8c021626 Mon Sep 17 00:00:00 2001 From: eead-csic-compbio Date: Thu, 14 Nov 2024 16:19:14 +0100 Subject: [PATCH] moved CI to GitHub action --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 21 --------------------- 2 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0714ac5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +# See the LICENSE ans scripts distributed with this work and for additional information +# regarding copyright ownership. + +name: "CI" + +on: + push: + branches: + - master + pull_request: + +defaults: + run: + working-directory: ./ + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: "5.28" + + - name: Install dependencies + run: | + sudo apt-get install -y r-base libdb-dev libgd-dev cpanminus + cpanm --sudo -v --installdeps --notest --cpanfile cpanfile . + make install_auto + shell: bash + + - name: Run tests + run: | + make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b26d3c9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -os: linux -dist: focal -language: perl -perl: - - "5.32" - -before_install: - #- "sudo apt-get update" - - "sudo apt-get install -y r-base libdb-dev libgd-dev" - - "cpanm --sudo -v --installdeps --notest --cpanfile cpanfile ." - -before_script: - - "make install_auto" - -script: - - "make test" - - "make clean" - -notifications: - email: - on_failure: always