branch: elpa/gnuplot
commit c1e60185442607c662d2278583e0160fdcd8d38a
Author: conao3 <[email protected]>
Commit: conao3 <[email protected]>
Add GitHub Actions CI configure files
---
.github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++
.gitignore | 1 +
Cask | 7 +++++++
tests/gnuplot-test.el | 40 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 84 insertions(+)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..956ae14
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,36 @@
+name: CI
+on: [push, pull_request]
+
+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'
+ include:
+ - emacs_version: 'snapshot'
+ allow_failure: true
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/[email protected]
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+ - uses: conao3/setup-cask@master
+
+ - name: Run tests
+ if: matrix.allow_failure != true
+ run: 'cask && cask build && cask exec buttercup -L .'
+
+ - name: Run tests (allow failure)
+ if: matrix.allow_failure == true
+ run: 'cask && cask build && cask exec buttercup -L . || true'
diff --git a/.gitignore b/.gitignore
index 35a1a4d..90bdf6c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/.cask
*.elc
*.log
*.aux
diff --git a/Cask b/Cask
new file mode 100644
index 0000000..aab2b91
--- /dev/null
+++ b/Cask
@@ -0,0 +1,7 @@
+(source gnu)
+(source melpa)
+
+(package-file "gnuplot.el")
+
+(development
+ (depends-on "buttercup"))
diff --git a/tests/gnuplot-test.el b/tests/gnuplot-test.el
new file mode 100644
index 0000000..e08de85
--- /dev/null
+++ b/tests/gnuplot-test.el
@@ -0,0 +1,40 @@
+;;; gnuplot-test.el --- -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2020 Naoya Yamashita
+
+;; Author: Naoya Yamashita <[email protected]>
+
+;; This program is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;;
+
+
+;;; Code:
+
+(require 'buttercup)
+(require 'gnuplot)
+
+(describe "A suite"
+ (it "contains a spec with an expectation"
+ (expect t :to-be t)))
+
+;; (provide 'gnuplot-test)
+
+;; Local Variables:
+;; indent-tabs-mode: nil
+;; End:
+
+;;; gnuplot-test.el ends here