diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..6f4b151 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2 +jobs: + build: + docker: + - image: pandoc/latex + + steps: + - checkout + + - run: + name: Setup dependencies + command: + apk add make + + - run: + name: Build all formats + command: + make all + + - run: + name: Check if epub exists + command: + test -s build/epub/book.epub + + - run: + name: Check if html exists + command: + test -s build/html/book.html && + test -s build/html/style.css && + test -s build/html/images/cover.png && + test -s build/html/images/seagull.png + + - run: + name: Check if pdf exists + command: + test -s build/pdf/book.pdf diff --git a/README.md b/README.md index f8f2357..1ad8a19 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Pandoc book template +[![CircleCI](https://circleci.com/gh/wikiti/pandoc-book-template.svg?style=shield)](https://circleci.com/gh/wikiti/pandoc-book-template) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nitayneeman/made-with-love/blob/master/LICENSE) + ## Description This repository contains a simple template for building [Pandoc](http://pandoc.org/) documents; Pandoc is a suite of tools to compile markdown files into readable files (PDF, EPUB, HTML...).