diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..87258a8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: CI + +on: + push: + paths-ignore: + - '**/*.md' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + 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.3 + 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: jcs090218/setup-emacs@master + with: + version: ${{ matrix.emacs-version }} + + - uses: emacs-eask/setup-eask@master + with: + version: 'snapshot' + + - uses: actions/checkout@v4 + + - name: Run make + run: | + eask package + eask install + eask compile diff --git a/.gitignore b/.gitignore index 315998e..9370b4f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ *.elc /.cask/ +/.eask/ +/dist/ /composer.lock /vendor/ diff --git a/Eask b/Eask new file mode 100644 index 0000000..7cf9ccf --- /dev/null +++ b/Eask @@ -0,0 +1,21 @@ +;; -*- mode: eask; lexical-binding: t -*- + +(package "psysh" + "0.1.1" + "PsySH, PHP interactive shell (REPL)") + +(website-url "https://github.com/emacs-php/psysh.el") +(keywords "processes" "php") + +(package-file "psysh.el") + +(script "test" "echo \"Error: no test specified\" && exit 1") + +(source 'gnu) +(source 'melpa) + +(depends-on "emacs" "24.3") +(depends-on "s") +(depends-on "php-runtime") + +(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432 diff --git a/psysh.el b/psysh.el index 604b2b3..d7aeabf 100644 --- a/psysh.el +++ b/psysh.el @@ -230,11 +230,11 @@ See `psysh-mode-output-syntax-table'." (defcustom psysh-doc-buffer-color 'auto "Coloring PsySH buffer." - :type '(choice (const :tag "Auto detect color mode." 'auto) - (const :tag "Use only PsySH original coloring." 'only-psysh) - (const :tag "Use only Emacs font-lock coloring." 'only-emacs) - (const :tag "Use multiple coloring mechanism." 'mixed) - (const :tag "No coloring." 'none))) + :type '(choice (const :tag "Auto detect color mode." auto) + (const :tag "Use only PsySH original coloring." only-psysh) + (const :tag "Use only Emacs font-lock coloring." only-emacs) + (const :tag "Use multiple coloring mechanism." mixed) + (const :tag "No coloring." none))) (defcustom psysh-doc-display-function #'view-buffer-other-window "Function to display PsySH doc buffer."