[travis] Build markdown sources using ox-hugo

This commit is contained in:
Correl Roush 2019-06-27 22:26:04 -04:00
parent de250c57d3
commit f77afe2a57
2 changed files with 33 additions and 0 deletions

View File

@ -1,9 +1,21 @@
dist: xenial
addons:
apt:
sources:
- sourceline: 'ppa:kelleyk/emacs'
packages:
- emacs26
- graphviz
install:
- curl -LO https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_0.55.6_Linux-64bit.deb
- sudo dpkg -i hugo_0.55.6_Linux-64bit.deb
- curl -LO https://downloads.sourceforge.net/project/plantuml/plantuml.jar
- curl -LO https://downloads.sourceforge.net/project/ditaa/ditaa/0.9/ditaa0_9.zip
- unzip ditaa0_9.zip ditaa0_9.jar
script:
- emacs --batch --eval "(load-file \"ci-setup.el\")" blog.org -f org-hugo-export-all-wim-to-md
- hugo -v
deploy:

21
ci-setup.el Normal file
View File

@ -0,0 +1,21 @@
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-refresh-contents)
(package-install 'use-package)
(require 'use-package)
(use-package org
:ensure org-plus-contrib
:config
(setq org-confirm-babel-evaluate nil
org-plantuml-jar-path "plantuml.jar"
org-ditaa-jar-path "ditaa0_9.jar"))
(use-package ox-hugo
:ensure t)
(defun org-hugo-export-all-wim-to-md ()
(org-hugo-export-wim-to-md :all-subtrees nil nil :noerror))