From a02e86cb9d215c26e496d3b7672832761f620356 Mon Sep 17 00:00:00 2001 From: Wikiti Date: Thu, 25 Jul 2019 18:04:02 +0100 Subject: [PATCH] Add CircleCI configuration --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .circleci/config.yml 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