emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dart-mode 2cb4dabe5c 5/8: Merge pull request #124 from jcs


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 2cb4dabe5c 5/8: Merge pull request #124 from jcs-PR/test/eask
Date: Mon, 18 Sep 2023 15:59:09 -0400 (EDT)

branch: elpa/dart-mode
commit 2cb4dabe5c404b97d70febfdfdc1dcba76b6feee
Merge: 9c846769ab 69d7c23be7
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #124 from jcs-PR/test/eask
---
 .github/dependabot.yml     |  6 ++++++
 .github/workflows/test.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 .gitignore                 |  4 +++-
 Eask                       | 22 ++++++++++++++++++++
 Makefile                   | 34 ++++++++++++++++---------------
 dart-mode.el               | 12 ++++++++---
 6 files changed, 109 insertions(+), 20 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000..253bcb76ba
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+  - package-ecosystem: github-actions
+    directory: /
+    schedule:
+      interval: daily
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..cf588b1081
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,51 @@
+name: CI
+
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  test:
+    runs-on: ${{ matrix.os }}
+    continue-on-error: ${{ matrix.experimental }}
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-latest, macos-latest, windows-latest]
+        emacs-version:
+          - 27.2
+          - 28.2
+          - 29.1
+        experimental: [false]
+        include:
+        - os: ubuntu-latest
+          emacs-version: snapshot
+          experimental: true
+        - os: macos-latest
+          emacs-version: snapshot
+          experimental: true
+        - os: windows-latest
+          emacs-version: snapshot
+          experimental: true
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - uses: jcs090218/setup-emacs@master
+      with:
+        version: ${{ matrix.emacs-version }}
+
+    - uses: emacs-eask/setup-eask@master
+      with:
+        version: 'snapshot'
+
+    - name: Run tests
+      run:
+        make ci
diff --git a/.gitignore b/.gitignore
index 0cc42129f6..804189e234 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 .cask
-*.elc
\ No newline at end of file
+.eask
+dist/
+*.elc
diff --git a/Eask b/Eask
new file mode 100644
index 0000000000..022fbd5662
--- /dev/null
+++ b/Eask
@@ -0,0 +1,22 @@
+(package "dart-mode"
+         "1.0.7"
+         "Major mode for editing Dart files")
+
+(website-url "https://github.com/bradyt/dart-mode";)
+(keywords "languages")
+
+(package-file "dart-mode.el")
+
+(script "test" "echo \"Error: no test specified\" && exit 1")
+
+(source 'gnu)
+(source 'melpa)
+
+(depends-on "emacs" "24.3")
+
+(development
+ (depends-on "ert-runner")
+ (depends-on "faceup")
+ (depends-on "package-lint"))
+
+(setq network-security-level 'low)  ; see 
https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
diff --git a/Makefile b/Makefile
index ac59e2bcd9..df812b4cb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,35 @@
-all: package-lint dart-mode.elc test
+all: package-lint compile test
 
-.cask:
-       cask install
+ci: clean build compile
 
-package-lint: .cask
-       cask emacs -batch -l package-lint.el -f package-lint-batch-and-exit
+build:
+       eask package
+       eask install
 
-dart-mode.elc:
-       emacs -batch -f batch-byte-compile dart-mode.el
+compile:
+       eask compile
 
-test-setup: .cask dart-mode.elc
+package-lint: build
+       eask lint package
+
+test-setup: build compile
+       eask install-deps --dev
 
 test-font-lock: test-setup
-       cask emacs -batch -l dart-mode.elc -l ert -l test/test-font-lock.el -f 
ert-run-tests-batch-and-exit
+       eask test ert test/test/test-font-lock.el
 
 test-indentation: test-setup
-       cask emacs -batch -l dart-mode.elc -l ert -l test/test-indentation.el 
-f ert-run-tests-batch-and-exit
+       eask test ert test/test-indentation.el
 
 test: test-font-lock test-indentation
 
 checkdoc:
-       emacs -batch -eval "(when (>= emacs-major-version 25) (checkdoc-file 
\"dart-mode.el\"))"
-
-clean: clean-cask clean-elc
+       eask lint checkdoc
 
-clean-cask:
-       rm -rf .cask
+clean:
+       eask clean all
 
 clean-elc:
-       rm dart-mode.elc
+       eask clean elc
 
 .PHONY: test
diff --git a/dart-mode.el b/dart-mode.el
index 69ddd90342..ecc1de2c8a 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -1,9 +1,15 @@
 ;;; dart-mode.el --- Major mode for editing Dart files -*- lexical-binding: t; 
-*-
 
-;; Author: https://github.com/bradyt/dart-mode/issues
-;; URL: https://github.com/bradyt/dart-mode
+;; Copyright (C) 2015-2018  Natalie Weizenbaum
+;; Copyright (C) 2018-2023  Brady Trainor
+;; Copyright (C) 2023  Shen, Jen-Chieh
+
+;; Author: Natalie Weizenbaum <nex342@gmail.com>
+;; Maintainer: Brady Trainor
+;;             Jen-Chieh Shen <jcs090218@gmail.com>
+;; URL: https://github.com/emacsorphanage/dart-mode
 ;; Version: 1.0.7
-;; Package-Requires: ((emacs "24.3"))
+;; Package-Requires: ((emacs "26.3"))
 ;; Keywords: languages
 
 ;; The author is Brady Trainor, but removed from keywords in attempt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]