From a1e3fb87dc67bc48889506e6d17b1610f08c9a8b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Jan 2020 22:43:59 -0800 Subject: [PATCH] Add docker configuration --- oni-docker.el | 32 ++++++++++++++++++++++++++++++++ test/integration/oni-docker.bats | 9 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 oni-docker.el create mode 100644 test/integration/oni-docker.bats diff --git a/oni-docker.el b/oni-docker.el new file mode 100644 index 0000000..9909a48 --- /dev/null +++ b/oni-docker.el @@ -0,0 +1,32 @@ +;;; oni-docker.el --- Configuration for working with Docker -*- lexical-binding: t; -*- + +;; Copyright (C) 2020 Tom Willemse + +;; Author: Tom Willemse +;; Keywords: local +;; Version: 2020.0107.223729 +;; Package-Requires: (dockerfile-mode) + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; Configuration for working with Dockers. + +;;; Code: + +;;;###autoload(with-eval-after-load 'dockerfile-mode (require 'oni-docker)) + +(provide 'oni-docker) +;;; oni-docker.el ends here diff --git a/test/integration/oni-docker.bats b/test/integration/oni-docker.bats new file mode 100644 index 0000000..b0712f4 --- /dev/null +++ b/test/integration/oni-docker.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +@test "Loading a Dockerfile loads oni-docker" { + run emacs -batch -l package -f package-initialize \ + -visit Dockerfile \ + -eval "(prin1 (featurep 'oni-docker))" + + [ "$output" = "t" ] +}