From bded83df3bba63ea6336eeec7191eced23c26653 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Tue, 16 Mar 2021 20:27:41 +0100 Subject: Facilitate building and checking * .github/workflows/test.yml: new file. Make GitHub Actions check each PR. * Makefile: new file. Use makel to simplify checking of the project quality. * .gitignore: new file. --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ .gitignore | 4 ++++ Makefile | 21 +++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .gitignore create mode 100644 Makefile 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 -- cgit v1.2.3-54-g00ecf