branch: elpa/datetime
commit e8d7b98aad42587093a897e6033453180fd34b61
Author: Paul Pogonyshev <pogonys...@gmail.com>
Commit: Paul Pogonyshev <pogonys...@gmail.com>

    Switch over to GitHub workflows, I'm fed up with Travis.
---
 .github/workflows/test.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 .travis.yml                | 26 -----------------------
 2 files changed, 52 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..a3acee8ba8
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,52 @@
+name: CI
+
+on:
+  push:
+    paths-ignore:
+      - '**.md'
+  pull_request:
+    paths-ignore:
+      - '**.md'
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    continue-on-error: ${{matrix.allow_failures}}
+
+    strategy:
+      matrix:
+        emacs_version:
+          - 25.1
+          - 25.2
+          - 25.3
+          - 26.1
+          - 26.2
+          - 26.3
+
+        allow_failures: [false]
+
+        include:
+          - emacs_version: snapshot
+            allow_failures: true
+
+    steps:
+    - name: Set up Emacs
+      uses: purcell/setup-emacs@master
+      with:
+        version: ${{matrix.emacs_version}}
+
+    - name: Install Eldev
+      run: curl -fsSL 
https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
+
+    - name: Install Java
+      uses: actions/setup-java@v1
+      with:
+        java-version: '14'
+
+    - name: Check out the source code
+      uses: actions/checkout@v2
+
+    - name: Test the project
+      run: |
+        eldev -p -dtT -C test --expect 20
+        eldev -dtT -C compile --set all --warnings-as-errors
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 2ed45c67bd..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-language: nix
-
-jdk:
-  - openjdk14
-
-# Testing code doesn't work on pre-25 Emacses even though the library
-# itself probably works on 24.x.  The reason is `make-process', which
-# is new in 25.  We cannot do without it since we need to ignore
-# stderr in order for tests to work (as due to whatever setup quirks
-# on Travis Java programs write some crap about _JAVA_OPTIONS to
-# stderr).  Don't care much.
-env:
-  - EMACS_CI=emacs-25-1
-  - EMACS_CI=emacs-25-2
-  - EMACS_CI=emacs-25-3
-  - EMACS_CI=emacs-26-1
-  - EMACS_CI=emacs-26-2
-  - EMACS_CI=emacs-26-3
-
-install:
-  - bash <(curl 
https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
-  - curl -fsSL 
https://raw.github.com/doublep/eldev/master/webinstall/travis-eldev > x.sh && 
source ./x.sh
-
-script:
-  - eldev -p -dtT test --expect 20
-  - eldev -dtT compile --set all --warnings-as-errors

Reply via email to