-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
299 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Local | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '**.yml' | ||
- lisp/** | ||
- cmds/** | ||
- src/** | ||
- scripts/** | ||
- test/** | ||
- '**.asd' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- name: Setup SBCL (Ubuntu) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install sbcl | ||
- name: Setup SBCL (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew install sbcl | ||
- name: Setup SBCL (Windows) | ||
if: runner.os == 'Windows' | ||
uses: crazy-max/ghaction-chocolatey@v3 | ||
with: | ||
args: install sbcl | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Quicklisp | ||
run: | | ||
make install-ql | ||
- name: Prepare Qob (Unix) | ||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
run: | | ||
chmod -R 777 ./ | ||
.github/scripts/setup-qob | ||
- name: Prepare Qob (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: .github/scripts/setup-qob.ps1 | ||
|
||
- name: Testing... | ||
run: | | ||
make command-global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
;;;; cmds/core/test.lisp --- Run system tests | ||
|
||
;;; Commentary | ||
;; | ||
;; The `test' command definition. | ||
;; | ||
|
||
;;; Code | ||
|
||
(defpackage qob-cli/test | ||
(:use cl) | ||
(:export command)) | ||
|
||
(in-package :qob-cli/test) | ||
|
||
(defun options () | ||
"Options for `test' command." | ||
(list )) | ||
|
||
(defun handler (cmd) | ||
"Handler for `test' command." | ||
(qob-cli:call-script "core/test" cmd)) | ||
|
||
(defun command () | ||
"The `test' command." | ||
(clingon:make-command | ||
:name "test" | ||
:description "Run system tests" | ||
:options (options) | ||
:handler #'handler)) | ||
|
||
;;; End of cmds/core/test.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
;;;; lisp/core/test.lisp --- Run system tests | ||
|
||
;;; Commentary | ||
;; | ||
;; Command use to run system tests, | ||
;; | ||
;; $ qob test [names..] | ||
;; | ||
|
||
;;; Code | ||
|
||
(qob-start | ||
(let ((names (qob-args)) | ||
(primary-test-system (qob-primary-test-system-entry))) | ||
(cond | ||
;; If specified system(s). | ||
(names | ||
(dolist (name names) | ||
(asdf:test-system name))) | ||
;; Print primary system. | ||
(primary-test-system | ||
(asdf:test-system (car primary-test-system))) | ||
;; Print help. | ||
(t | ||
(qob-help "core/test"))))) | ||
|
||
;;; End of lisp/core/test.lisp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
💡 You need to specify the systems you want to test: | ||
|
||
$ qob test <system-1> <system-2> ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.