From 582ff298c873f9b9cc294fb7f0c7362ffa818035 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Mon, 18 Nov 2019 21:45:07 +0900 Subject: [PATCH 1/2] Add .github/workflows/test.yml --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..15860af9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + paths-ignore: + - '**/*.md' + - 'etc/*' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - "24.4" + - "24.5" + - "25.1" + - "25.2" + - "25.3" + - "26.1" + - "26.2" + - "26.3" + - snapshot + env: + EMACS_LINT_IGNORE: ${{ matrix.lint_ignore }} + steps: + - uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + + - uses: actions/checkout@v1 + - name: Run tests + run: 'make test' diff --git a/README.md b/README.md index eaa5d8f2..47ddce80 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ PHP Mode for GNU Emacs [![Emacs: 26.3](https://img.shields.io/badge/Emacs-26.3-blue.svg)](https://www.gnu.org/software/emacs/) [![lang: PHP 7](https://img.shields.io/badge/lang-PHP%207-brightgreen.svg)](http://php.net/manual/migration70.php) [![lang: PHP 5](https://img.shields.io/badge/lang-PHP%205-green.svg)](http://php.net/downloads.php) -[![travis badge][travis-badge]][travis-link] +[![Build Status](https://github.com/emacs-php/php-mode/workflows/CI/badge.svg)](https://github.com/emacs-php/php-mode/actions) [![melpa badge][melpa-badge]][melpa-link] [![melpa stable badge][melpa-stable-badge]][melpa-stable-link] [![GPL v3](https://img.shields.io/badge/license-GPL_v3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.txt) From b8055bde9f465c22dcbb653b3192335fbfd025ef Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Mon, 18 Nov 2019 21:49:55 +0900 Subject: [PATCH 2/2] Remove .travis.yml --- .travis.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 74a41e88..00000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: emacs-lisp -env: - matrix: - - EMACS_VERSION=emacs-24.4-travis - - EMACS_VERSION=emacs-24.5-travis - - EMACS_VERSION=emacs-25.2-travis - - EMACS_VERSION=emacs-25.3-travis - - EMACS_VERSION=emacs-26.1-travis - - EMACS_VERSION=emacs-26.2-travis - - EMACS_VERSION=emacs-26.3-travis - - EMACS_VERSION=emacs-git-snapshot-travis - - EMACS_VERSION=remacs-git-snapshot-travis -matrix: - fast_finish: true - allow_failures: - - env: EMACS_VERSION=emacs-git-snapshot-travis - -before_install: - - export PATH="/home/travis/.evm/bin:$PATH" - - git clone https://github.com/rejeep/evm.git /home/travis/.evm - - evm config path /tmp - - evm install $EMACS_VERSION --use || true - -script: - # Make sure the exact emacs version can be found in the build output. - - emacs -Q --batch --eval '(message (emacs-version))' - - make test