Skip to content

Commit

Permalink
[fu] ci - flycheck - link to home
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Nov 20, 2024
1 parent 28e70bc commit b144a0b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .ci/batch-byte-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

exit_code=0
Expand Down
2 changes: 1 addition & 1 deletion .ci/batch-checkdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

for pattern in "modules/*.el" "init.el" "themes/*.el" ".ci/*.el"; do
Expand Down
2 changes: 1 addition & 1 deletion .ci/batch-flycheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

for pattern in "modules/*.el" "init.el" "themes/*.el" ".ci/*.el"; do
Expand Down
2 changes: 1 addition & 1 deletion .ci/first-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

# Redefine ask-user-about-lock as the melpa seems to stumble on it
Expand Down
2 changes: 1 addition & 1 deletion .ci/unit-test-cl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -x
set -e
EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

${EMACS} -Q --batch \
Expand Down
2 changes: 1 addition & 1 deletion .ci/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

# Run all tests form *.t.el
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:

- uses: actions/checkout@v4
with:
path: '.emacs.d'
path: exordium

- name: Link exordium to $HOME/.emacs.d
run: ln -s "${GITHUB_WORKSPACE}/exordium" "${HOME}/.emacs.d"

- name: Install bash # Needed for mapfile on macOS,
# Installing early so all scripts run in
Expand All @@ -47,10 +50,10 @@ jobs:
run: brew install bash

- name: First start # So most modules are pulled in from melpa and gnu
run: .emacs.d/.ci/first-start.sh
run: '"${HOME}/.emacs.d/.ci/first-start.sh"'

- name: Unit tests
run: .emacs.d/.ci/unit-tests.sh
run: '"${HOME}/.emacs.d/.ci/unit-tests.sh"'

- name: Publish test report
uses: mikepenz/action-junit-report@v5
Expand All @@ -59,25 +62,20 @@ jobs:
report_paths: '.emacs.d/modules/*.t.xml'

- name: Verify no obsolete cl- functions
run: .emacs.d/.ci/unit-test-cl.sh
run: '"${HOME}/.emacs.d/.ci/unit-test-cl.sh"'

- name: 'Lint: checkdoc'
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-checkdoc.sh
run: '"${HOME}/.emacs.d/.ci/batch-checkdoc.sh"'

- name: 'Lint: compilation' # Close to the end, to let other builds escape errors
# caused by compilation shenanigans
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-byte-compile.sh

- name: Link .emacs.d to $HOME # batch-flycheck expects Exordium
# to be installed in ${HOME}/.emacs.d
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: ln -s "${GITHUB_WORKSPACE}/.emacs.d" "${HOME}/.emacs.d"
run: '"${HOME}/.emacs.d/.ci/batch-byte-compile.sh"'

- name: 'Lint: flycheck' # After compilation that should install all packages
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-flycheck.sh
run: '"${HOME}/.emacs.d/.ci/batch-flycheck.sh"'

pkryger-taps:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit b144a0b

Please sign in to comment.