From e7efaf1eb1c2602a9650a336ae44192bebb7b42e Mon Sep 17 00:00:00 2001 From: Max Regan Date: Wed, 23 Mar 2022 09:38:17 -0700 Subject: [PATCH] Add test that emacs config loads --- .doom.d/test-emacs.sh | 3 +++ .gitlab-ci.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 .doom.d/test-emacs.sh diff --git a/.doom.d/test-emacs.sh b/.doom.d/test-emacs.sh new file mode 100755 index 0000000..49a6c36 --- /dev/null +++ b/.doom.d/test-emacs.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +emacs --batch --load ~/.emacs.d/init.el -u $LOGNAME --debug-init diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22477df..35db5f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,18 @@ # See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables stages: - test + sast: stage: test + +test-emacs: + stage: test + image: ubuntu:latest + before_script: + - apt-get update + - apt-get install -y emacs-nox + script: + - ./.doom.d/test-emacs.sh + include: - template: Security/SAST.gitlab-ci.yml