summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Petton2021-03-16 21:01:39 +0100
committerGravatar GitHub2021-03-16 21:01:39 +0100
commit12d90831bbfd590f3c9090b6575826f3ff34765d (patch)
treeddb347cf5d94cf58adfd2827b4b14981ef4bcfc8
parent72bc00f3ec82fea8648a7fc7848c5ee1bfefe57e (diff)
parentbded83df3bba63ea6336eeec7191eced23c26653 (diff)
downloadnroam-12d90831bbfd590f3c9090b6575826f3ff34765d.tar.gz
nroam-12d90831bbfd590f3c9090b6575826f3ff34765d.zip
Merge pull request #16 from DamienCassou/add-makefile
Facilitate building and checking
-rw-r--r--.github/workflows/test.yml26
-rw-r--r--.gitignore4
-rw-r--r--Makefile21
3 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..3e2d1c4
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,26 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ emacs_version:
+ - 27.1
+ steps:
+ - name: Set up Emacs
+ uses: purcell/setup-emacs@master
+ with:
+ version: ${{matrix.emacs_version}}
+
+ - name: Check out the source code
+ uses: actions/checkout@v2
+
+ - name: Test the project
+ run: |
+ make ci-dependencies
+ make check
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2af3083
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.elc
+*~
+nroam-autoloads.el
+/makel.mk
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..349145d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+ELPA_DEPENDENCIES=package-lint
+
+ELPA_ARCHIVES=melpa-stable gnu
+
+LINT_CHECKDOC_FILES=$(wildcard *.el)
+LINT_PACKAGE_LINT_FILES=nroam.el
+LINT_COMPILE_FILES=$(wildcard *.el)
+
+makel.mk:
+ # Download makel
+ @if [ -f ../makel/makel.mk ]; then \
+ ln -s ../makel/makel.mk .; \
+ else \
+ curl \
+ --fail --silent --show-error --insecure --location \
+ --retry 9 --retry-delay 9 \
+ -O https://gitlab.petton.fr/DamienCassou/makel/raw/v0.6.0/makel.mk; \
+ fi
+
+# Include makel.mk if present
+-include makel.mk