Add CircleCI configuration

This commit is contained in:
Wikiti 2019-07-25 18:04:02 +01:00
parent a9a0cc7617
commit a02e86cb9d
1 changed files with 36 additions and 0 deletions

36
.circleci/config.yml Normal file
View File

@ -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