From 32fc3b68d14a027ec70fb5cca38471ebdfed9ee7 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 2 Dec 2020 14:42:54 -0800 Subject: [PATCH] swap Travis for GH actions --- .github/workflows/ci.yml | 45 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 46 ---------------------------------------- README.md | 2 +- 3 files changed, 46 insertions(+), 47 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..28f4233 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: [push, pull_request] + +jobs: + run: + name: "Build using Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + racket-version: ["6.6", "6.7", "6.8", "6.9", "6.10.1", "6.11", "6.12", "7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "current"] + racket-variant: ["BC", "CS"] + # CS builds are only provided for versions 7.4 and up so avoid + # running the job for prior versions. + exclude: + - {racket-version: "6.6", racket-variant: "CS"} + - {racket-version: "6.7", racket-variant: "CS"} + - {racket-version: "6.8", racket-variant: "CS"} + - {racket-version: "6.9", racket-variant: "CS"} + - {racket-version: "6.10.1", racket-variant: "CS"} + - {racket-version: "6.11", racket-variant: "CS"} + - {racket-version: "6.12", racket-variant: "CS"} + - {racket-version: "7.0", racket-variant: "CS"} + - {racket-version: "7.1", racket-variant: "CS"} + - {racket-version: "7.2", racket-variant: "CS"} + - {racket-version: "7.3", racket-variant: "CS"} + + steps: + - name: Checkout + uses: actions/checkout@master + + - uses: Bogdanp/setup-racket@v0.11 + with: + distribution: 'full' + version: ${{ matrix.racket-version }} + variant: ${{ matrix.racket-variant }} + + - name: Install BR parser tools + run: raco pkg install --deps search-auto https://github.com/mbutterick/br-parser-tools.git?path=br-parser-tools-lib + + - name: Run the br-parser-tools tests + run: xvfb-run raco test -p br-parser-tools-lib + + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e256d4e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -# adapted from -# https://github.com/greghendershott/travis-racket/blob/master/.travis.yml -# Thanks Greg! - -language: c -sudo: false - -env: - global: - - RACKET_DIR=~/racket - matrix: -# - RACKET_VERSION=6.0 -# - RACKET_VERSION=6.1 -# - RACKET_VERSION=6.2 - - RACKET_VERSION=6.3 - - RACKET_VERSION=6.4 - - RACKET_VERSION=6.5 - - RACKET_VERSION=6.6 - - RACKET_VERSION=6.7 - - RACKET_VERSION=6.8 - - RACKET_VERSION=6.9 - - RACKET_VERSION=6.10 - - RACKET_VERSION=6.11 - - RACKET_VERSION=6.12 - - RACKET_VERSION=HEAD - -# You may want to test against certain versions of Racket, without -# having them count against the overall success/failure. -matrix: - allow_failures: - #- env: RACKET_VERSION=HEAD - # Fast finish: Overall build result is determined as soon as any of - # its rows have failed, or, all of its rows that aren't allowed to - # fail have succeeded. - fast_finish: true - -before_install: - - git clone https://github.com/mbutterick/travis-racket.git - - cat travis-racket/install-racket.sh | bash # pipe to bash not sh! - - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us - -script: - - cd .. # Travis did a cd into the dir. Back up, for the next: - - travis_retry raco pkg install --deps search-auto https://github.com/mbutterick/br-parser-tools.git?path=br-parser-tools-lib - - raco test -p br-parser-tools-lib - diff --git a/README.md b/README.md index 4655e9e..760610c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# br-parser-tools [![Build Status](https://travis-ci.org/mbutterick/br-parser-tools.svg?branch=master)](https://travis-ci.org/mbutterick/br-parser-tools) +# br-parser-tools ![Build Status](https://github.com/mbutterick/br-parser-tools/workflows/CI/badge.svg)