branch: elpa/haskell-tng-mode commit 2d50a0613c4dac8360421469384358110760a8a7 Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
enable CI --- .gitlab-ci.yml | 14 ++++++++++++++ .python-version | 2 +- Cask | 2 -- Dockerfile | 12 ++++++++++++ haskell-tng-hsinspect.el | 1 + 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..00b12ba --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +image: registry.gitlab.com/tseenshe/haskell-tng.el:26.3 + +cache: + paths: + - .cask + +build_job: + stage: build + script: + - cask pkg-file + - cask update + - cask install + - cask build + - cask exec ert-runner diff --git a/.python-version b/.python-version index 0833a98..a08ffae 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.7.4 +3.8.2 diff --git a/Cask b/Cask index 2bcba39..1e0db99 100644 --- a/Cask +++ b/Cask @@ -19,8 +19,6 @@ ;; ;;; Code: -;; FIXME set up CI on gitlab - (source melpa-stable) (source melpa) ;; for faceup diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bcfe3ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM archlinux/base:latest + +# docker build . -t registry.gitlab.com/tseenshe/haskell-tng.el:26.3 +# docker login --username=tseenshe registry.gitlab.com +# docker push registry.gitlab.com/tseenshe/haskell-tng.el:26.3 + +RUN pacman -Sy &&\ + yes | pacman -Su emacs-nox git python &&\ + yes | pacman -Scc + +ENV PATH "/root/.cask/bin:$PATH" +RUN curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python diff --git a/haskell-tng-hsinspect.el b/haskell-tng-hsinspect.el index 2c86a11..f8b76f1 100644 --- a/haskell-tng-hsinspect.el +++ b/haskell-tng-hsinspect.el @@ -346,6 +346,7 @@ ability to follow any further." (selected (haskell-tng--hsinspect-popup-menu entries))) (seq-find (lambda (el) (equal (alist-get 'module el) selected)) hits)))) +;; FIXME use advice or something like that instead of this testing hack (defvar-local haskell-tng--hsinspect-popup-menu nil) (defun haskell-tng--hsinspect-popup-menu (entries) (or