Try to test the install process
This commit is contained in:
parent
1011229c85
commit
6a210b7bb1
|
@ -1,12 +1,12 @@
|
||||||
language: emacs-lisp
|
language: emacs-lisp
|
||||||
sudo: false
|
sudo: false
|
||||||
|
env:
|
||||||
|
- EVM_EMACS=emacs-25.1-travis
|
||||||
before_install:
|
before_install:
|
||||||
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
|
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
|
||||||
- evm install $EVM_EMACS --use --skip
|
- evm install $EVM_EMACS --use --skip
|
||||||
- cask
|
- cask
|
||||||
env:
|
|
||||||
# - EVM_EMACS=emacs-24.5-travis
|
|
||||||
- EVM_EMACS=emacs-25.1-travis
|
|
||||||
script:
|
script:
|
||||||
- emacs --version
|
- emacs --version
|
||||||
- make test
|
- make test
|
||||||
|
- emacs -q --batch --load test/resources/init.el
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
;; Maintainer: Carlo Sciolla (skuro)
|
;; Maintainer: Carlo Sciolla (skuro)
|
||||||
;; Keywords: uml plantuml ascii
|
;; Keywords: uml plantuml ascii
|
||||||
;; Version: 1.2.3
|
;; Version: 1.2.3
|
||||||
;; Package-Requires: ((emacs "24"))
|
|
||||||
|
|
||||||
;; You can redistribute this program and/or modify it under the terms
|
;; You can redistribute this program and/or modify it under the terms
|
||||||
;; of the GNU General Public License as published by the Free Software
|
;; of the GNU General Public License as published by the Free Software
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
;; Used to test `plantuml-mode' installations
|
||||||
|
|
||||||
|
(setq user-emacs-directory "./.emacs.d")
|
||||||
|
|
||||||
|
(require 'subr-x)
|
||||||
|
(setq local-repository
|
||||||
|
(concat
|
||||||
|
(string-trim (shell-command-to-string "cask package-directory"))
|
||||||
|
"/../testing"))
|
||||||
|
(custom-set-variables `(package-archive-upload-base ,local-repository))
|
||||||
|
|
||||||
|
(require 'package-x)
|
||||||
|
(defun -package-upload (file)
|
||||||
|
(with-temp-buffer
|
||||||
|
(insert-file-contents file)
|
||||||
|
(let ((pkg-desc (package-buffer-info)))
|
||||||
|
(package-upload-buffer-internal pkg-desc "el"))))
|
||||||
|
(-package-upload "plantuml-mode.el")
|
||||||
|
|
||||||
|
(setq package-archives `(("local" . ,local-repository)))
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
|
(package-install 'plantuml-mode)
|
||||||
|
(require 'plantuml-mode)
|
Loading…
Reference in New Issue