From 1107fe3646591e3a89905167c4765dc871cf89cc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 26 Apr 2017 14:31:08 +0100 Subject: [PATCH] Try application on CI --- .travis.yml | 18 ++++++++++++++++++ scripts/before_script.sh | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 .travis.yml create mode 100644 scripts/before_script.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ee8a0b6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +sudo: false +language: python +python: "3.6" + +addons: + apt: + packages: + - pandoc + - pandoc-citeproc + +before_install: + - bash scripts/before_script.sh + +install: + - python3 setup.py install + +script: + - cd test-files && mdp -vvv diff --git a/scripts/before_script.sh b/scripts/before_script.sh new file mode 100644 index 0000000..961302b --- /dev/null +++ b/scripts/before_script.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +sudo apt-get install -y openssl build-essential xorg libssl-dev +wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz +tar -xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz +cd wkhtmltox +sudo chown root:root bin/wkhtmltopdf +sudo cp -r * /usr/