Use GitHub workflows for CI

master
Fanael Linithien 6 years ago
parent 455bcee19c
commit a695c0f3b9
  1. 12
      .github/workflows/test.sh
  2. 27
      .github/workflows/test.yml
  3. 26
      .travis.yml

@ -0,0 +1,12 @@
#!/bin/sh
set -o errexit
set -o nounset
if [ "$EMACS_VERSION" = '23.4' ]; then
curl -O 'https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el'
fi
EMACS="${EMACS:=emacs}"
"$EMACS" -Q -batch --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile rainbow-delimiters.el
"$EMACS" -Q -batch -l rainbow-delimiters-test.el -f ert-run-tests-batch-and-exit

@ -0,0 +1,27 @@
name: CI
on:
push:
paths-ignore:
- '**/*.md'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- 23.4
- 24.5
- 25.3
- 26.3
- snapshot
env:
EMACS_VERSION: ${{ matrix.emacs_version }}
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v1
- name: Run tests
run: './.github/workflows/test.sh'

@ -1,26 +0,0 @@
language: emacs-lisp
env:
- EMACS=emacs23
- EMACS=emacs24
- EMACS=emacs25
- EMACS=emacs26
- EMACS=emacs-snapshot
before_install:
- sudo add-apt-repository -y ppa:cassou/emacs
- sudo add-apt-repository -y ppa:ubuntu-elisp/ppa
- sudo apt-get update -y -q
- sudo apt-get install -y $EMACS-nox
install:
- if [ "$EMACS" = "emacs23" ]; then
curl -O 'https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el';
fi
script:
- $EMACS -Q -batch --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile rainbow-delimiters.el
- $EMACS -Q -batch -l rainbow-delimiters-test.el -f ert-run-tests-batch-and-exit
notifications:
email: false
Loading…
Cancel
Save