From 31c0248d9cfc4fb4c64264aa438011598ed19470 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Mon, 15 Jan 2018 10:51:24 -0800 Subject: [PATCH] Adding .travis.yml for pdf release --- .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..89c863f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +# travis-ci - KLL Spec Travis Integration + +sudo: required +dist: trusty + +# Install packages +before_install: +- sudo apt-get -qq update && sudo apt-get install -y --no-install-recommends texlive-fonts-recommended + texlive-latex-extra texlive-fonts-extra dvipng texlive-latex-recommended tree texlive-pictures pgf + poppler-utils latex2html +- tree + +# Make sure system has correct versions +install: +- uname -a +- tree +- pdflatex --version +- cmake --version + +# Build pdf +script: +- mkdir build +- cd build +- cmake .. +- make +- cp -f main.pdf kll-spec-${TRAVIS_BRANCH}.pdf +- tree + +# Deploy pdf +deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + file: kll-spec-${TRAVIS_BRANCH}.pdf + skip_cleanup: true + on: + repo: kiibohd/kll-spec + tags: true + branch: + - test + - master + - 0.3d + - 0.4 + - 0.5 +