diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..ef5ceca --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,32 @@ +name: CI + +# Trigger the workflow on push or pull request +on: + - push + - pull_request + +jobs: + # The CI test job + test: + name: ${{ matrix.gap-branch }} + runs-on: ubuntu-latest + # Don't run this twice on PRs for branches pushed to the same repository + if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} + strategy: + fail-fast: false + matrix: + gap-branch: + - master + - stable-4.11 + - stable-4.10 + - stable-4.9 + + steps: + - uses: actions/checkout@v2 + - uses: gap-actions/setup-gap@v2 + with: + GAPBRANCH: ${{ matrix.gap-branch }} + - uses: gap-actions/build-pkg@v1 + - uses: gap-actions/run-pkg-tests@v2 + - uses: gap-actions/process-coverage@v2 + - uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ab823f2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: c -env: - global: - # For details how this works, and what other configurations you - # can make, please look at - #- GAP_PKGS_TO_CLONE="SomeOtherPackage" - #- GAP_PKGS_TO_BUILD="io profiling SomeOtherPackage" # note: io and profiling always must be built - -addons: - apt_packages: - - libgmp-dev - - libreadline-dev - - zlib1g-dev - -matrix: - include: - - env: GAPBRANCH=master - - env: GAPBRANCH=stable-4.11 - - env: GAPBRANCH=stable-4.10 - - env: GAPBRANCH=stable-4.9 - - env: GAPBRANCH=master ABI=32 - addons: - apt_packages: - - libgmp-dev:i386 - - libreadline-dev:i386 - - zlib1g-dev:i386 - - gcc-multilib - - g++-multilib - -branches: - only: - - master - -before_script: - - git clone https://github.com/gap-system/pkg-ci-scripts.git scripts - - scripts/build_gap.sh -script: - - scripts/build_pkg.sh && scripts/run_tests.sh -after_script: - - bash scripts/gather-coverage.sh - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 8bb9555..42ec8d1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/rse-standrewscs/gap-binder-template.svg?branch=master)](https://travis-ci.org/rse-standrewscs/gap-binder-template) +[![Build Status](https://github.com/rse-standrewscs/gap-binder-template/workflows/CI/badge.svg?branch=master)](https://github.com/rse-standrewscs/gap-binder-template/actions?query=workflow%3ACI+branch%3Amaster) [![Code Coverage](https://codecov.io/github/rse-standrewscs/gap-binder-template/coverage.svg?branch=master&token=)](https://codecov.io/gh/rse-standrewscs/gap-binder-template) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/rse-standrewscs/gap-binder-template/master) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3662155.svg)](https://doi.org/10.5281/zenodo.3662155)