-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev See merge request fstamour/breeze!47
- Loading branch information
Showing
122 changed files
with
13,710 additions
and
3,146 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,13 @@ | ||
;;; Directory Local Variables -*- no-byte-compile: t -*- | ||
;;; For more information see (info "(emacs) Directory Variables") | ||
|
||
((nil . ((eval . (progn | ||
(setq-local org-roam-directory | ||
(file-truename | ||
(file-name-concat | ||
(locate-dominating-file default-directory ".dir-locals.el") | ||
"docs/"))) | ||
(setq-local org-roam-db-location | ||
(file-name-concat org-roam-directory "org-roam.db")))) | ||
(org-roam-capture-templates . (("d" "default" plain "%?" :target (file+head "${slug}.org" "#+title: ${title} | ||
") :unnarrowed t)))))) |
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 |
---|---|---|
@@ -1,12 +1,21 @@ | ||
scratch-files/ | ||
.git/ | ||
.github/ | ||
.githooks/ | ||
.gitattributes | ||
.gitmodules | ||
# *.core | ||
*.dot | ||
*.fasl | ||
*.log | ||
*.org | ||
result | ||
*.png | ||
*.svg | ||
*~ | ||
dockerfile | ||
.dockerignore | ||
.git/ | ||
.gitattributes | ||
.githooks/ | ||
.github/ | ||
.gitignore | ||
.gitmodules | ||
/.direnv/ | ||
dockerfile | ||
githooks/*.sample | ||
public/ | ||
result | ||
scratch-files/ |
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,65 @@ | ||
|
||
# Only run pipelines for merge requests, tags, and protected branches. | ||
workflow: | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" | ||
- if: $CI_COMMIT_TAG | ||
- if: $CI_COMMIT_REF_PROTECTED == "true" | ||
|
||
.base: | ||
image: clfoundation/$LISP:latest | ||
variables: | ||
LISP: sbcl | ||
QUICKLISP_ADD_TO_INIT_FILE: "true" | ||
QUICKLISP_DIST_VERSION: "latest" | ||
before_script: | ||
- install-quicklisp | ||
script: | ||
- make test | ||
rules: | ||
- when: manual | ||
|
||
test: | ||
extends: .base | ||
variables: | ||
LISP: sbcl | ||
parallel: | ||
matrix: | ||
- STACK: | ||
- sbcl | ||
# TODO | ||
# - abcl | ||
# - ccl | ||
# - ecl | ||
|
||
|
||
## The job "doc" will re-run the tests, but I'm keeping that | ||
## redundancy because the job "test" will be expanded to work on | ||
## multiple cl implementations. | ||
|
||
# Build public/ folder using org-publish on docs/ | ||
doc: | ||
image: docker:24.0.7 | ||
services: | ||
- docker:24.0.5-dind | ||
script: | ||
- apk add --no-cache make | ||
- make public | ||
artifacts: | ||
paths: | ||
- public | ||
rules: | ||
- when: manual | ||
|
||
pages: | ||
needs: | ||
- job: doc | ||
artifacts: true | ||
script: | ||
- echo "nothing to do!" | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH | ||
- when: manual | ||
artifacts: | ||
paths: | ||
- public |
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,63 @@ | ||
###################################################################### | ||
### Base layers, setup working directory and quicklisp | ||
# FROM docker.io/clfoundation/${LISP}:${LISP_VERSION} as base | ||
FROM alpine:3.18.4 as base | ||
|
||
RUN mkdir /breeze | ||
WORKDIR /breeze | ||
|
||
|
||
FROM base as quicklisp | ||
|
||
RUN apk add sbcl | ||
COPY scripts/quicklisp.lisp scripts/quicklisp.lisp | ||
RUN sbcl --non-interactive \ | ||
--load scripts/quicklisp.lisp \ | ||
--eval "(quicklisp-quickstart:install)" \ | ||
--eval "(ql-util:without-prompting (ql:add-to-init-file))" | ||
|
||
###################################################################### | ||
### Download all needed dependencies (for the main and the test | ||
### systems). | ||
FROM quicklisp as deps | ||
|
||
COPY breeze.asd . | ||
COPY scripts/load-dependencies.lisp scripts/load-dependencies.lisp | ||
|
||
RUN sbcl --noinform --non-interactive \ | ||
--load scripts/load-dependencies.lisp | ||
|
||
|
||
FROM scratch as dependencies.core | ||
|
||
COPY --from=deps /breeze/dependencies.core /dependencies.core | ||
|
||
###################################################################### | ||
### Run the tests and generate some documentation | ||
FROM quicklisp as test | ||
|
||
COPY . . | ||
RUN sbcl --core dependencies.core \ | ||
--eval "(asdf:test-system '#:breeze)" | ||
|
||
FROM base as org-publish | ||
|
||
RUN apk add bash ca-certificates emacs | ||
|
||
COPY . . | ||
COPY --from=test /breeze/docs /breeze/docs | ||
|
||
RUN emacs -Q --batch --load scripts/org-publish-project.el --kill | ||
RUN ls | ||
RUN ls /breeze/public | ||
|
||
FROM scratch as public | ||
|
||
COPY --from=org-publish /breeze/public / | ||
|
||
|
||
###################################################################### | ||
### This is where I left off | ||
|
||
# FROM deps as integration-tests | ||
# RUN emacs -batch -l ert -l my-tests.el -f ert-run-tests-batch-and-exit |
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.