aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml35
-rw-r--r--.travis.yml30
-rw-r--r--Makefile2
-rw-r--r--README.md2
4 files changed, 37 insertions, 32 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..55c0f8a
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,35 @@
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ emacs_version:
+ - 24.5
+ - 25.3
+ - 26.3
+ - 27.1
+ - snapshot
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+
+ - uses: actions/checkout@v2
+
+ - name: Print emacs version
+ run: |
+ emacs --version
+
+ - name: Run tests
+ run: |
+ make test
+
+ - name: Print results
+ if: ${{ always() }}
+ run: |
+ cat test-results.txt
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 672187c..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-language: nix
-
-os:
- - linux
-
-env:
- - EMACS_CI=emacs-24-5
- - EMACS_CI=emacs-25-3
- - EMACS_CI=emacs-26-3
- - EMACS_CI=emacs-27-1
- - EMACS_CI=emacs-snapshot
-
-matrix:
- allow_failures:
- - env: EMACS_CI=emacs-snapshot
-
-install:
- - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
-
-script:
- - emacs --version
- - script -eqc 'make test' > /dev/null
-
-after_script:
- - cat test-results.txt
-
-notifications:
- email:
- on_success: never
- on_failure: always
diff --git a/Makefile b/Makefile
index c8d3958..29e2eeb 100644
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,7 @@ clean:
# make test TAG=repeat
# This will only run tests pertaining to the repeat system.
test:
- $(EMACS) -nw -Q -L . $(LIBS) -l evil-tests.el \
+ $(EMACS) -nw -Q --batch -L . $(LIBS) -l evil-tests.el \
--eval "(evil-tests-initialize '(${TAG}) '(${PROFILER}))"
# Byte-compile Evil and run all tests.
diff --git a/README.md b/README.md
index f7f05ab..2b768cc 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
![An extensible vi layer for Emacs](https://raw.githubusercontent.com/emacs-evil/evil/master/doc/logo.png)
-[![Build Status](https://travis-ci.org/emacs-evil/evil.svg?branch=master)](https://travis-ci.org/emacs-evil/evil)
+[![Build status](https://github.com/emacs-evil/evil/actions/workflows/test.yml/badge.svg)](https://github.com/emacs-evil/evil/actions/workflows/test.yml)
[![MELPA](https://melpa.org/packages/evil-badge.svg)](https://melpa.org/#/evil)
[![MELPA Stable](https://stable.melpa.org/packages/evil-badge.svg)](https://stable.melpa.org/#/evil)
[![Documentation Status](https://readthedocs.org/projects/evil/badge/?version=latest)](https://evil.readthedocs.io/en/latest/?badge=latest)