[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode 8775ca8d99 1/8: test: Build with Eask
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode 8775ca8d99 1/8: test: Build with Eask |
Date: |
Mon, 18 Sep 2023 15:59:06 -0400 (EDT) |
branch: elpa/dart-mode
commit 8775ca8d9940e8d6bfb247c5624b3f75a5531fc3
Author: JenChieh <jcs090218@gmail.com>
Commit: JenChieh <jcs090218@gmail.com>
test: Build with Eask
---
.github/dependabot.yml | 6 ++++++
.github/workflows/test.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++
.gitignore | 1 +
Eask | 22 ++++++++++++++++++++
Makefile | 33 +++++++++++++++--------------
5 files changed, 98 insertions(+), 16 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..bbc9581d8b
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,52 @@
+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:
+ - 26.3
+ - 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..38a0d078a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.cask
+.eask
*.elc
\ No newline at end of file
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..4ae78e2113 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,34 @@
-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
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
- [nongnu] elpa/dart-mode updated (9c846769ab -> 3a73e65e0d), ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode aa86bc993c 2/8: Ensure dev dep, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode 8775ca8d99 1/8: test: Build with Eask,
ELPA Syncer <=
- [nongnu] elpa/dart-mode e1baf65959 7/8: test: Replace master to main branch, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode c1c12b0a05 6/8: Bump actions/checkout from 3 to 4, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode c189cf4abd 3/8: Ignore dist, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode 2cb4dabe5c 5/8: Merge pull request #124 from jcs-PR/test/eask, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode 3a73e65e0d 8/8: Merge pull request #125 from emacsorphanage/dependabot/github_actions/actions/checkout-4, ELPA Syncer, 2023/09/18
- [nongnu] elpa/dart-mode 69d7c23be7 4/8: Fix compile error and copy right, ELPA Syncer, 2023/09/18