diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c4ac375..a988f44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -208,6 +208,13 @@ integration-test-oni-bats: - package script: make integration-test-oni-bats TEST_ARCHIVE=$(realpath bin/) +integration-test-oni-conf: + stage: integration-test + image: registry.gitlab.com/ryuslash/emacs-config + dependencies: + - package + script: make integration-test-oni-conf TEST_ARCHIVE=$(realpath bin/) + integration-test-oni-bookmark: stage: integration-test image: registry.gitlab.com/ryuslash/emacs-config diff --git a/test/integration/oni-conf.bats b/test/integration/oni-conf.bats new file mode 100644 index 0000000..1f9f2d3 --- /dev/null +++ b/test/integration/oni-conf.bats @@ -0,0 +1,11 @@ +#!/usr/bin/env bats + +@test "Opening a .conf file loads oni-conf" { + run emacs -batch -l package -f package-initialize \ + -visit test.conf \ + -eval "(prin1 (featurep 'oni-conf))" + + echo "$output" + + [ "$output" = "t" ] +}