From 757e09e32ea49b871e03ffcc1d44e7ea5c1a5369 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Sun, 9 Oct 2016 09:47:38 -0700 Subject: [PATCH] Adding Travis-CI deploy build for kll-spec - Builds then deploys directly on GitHub (more convenient than OverLeaf) - Adding banners for each of the build branches --- .travis.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ README.md | 9 +++++---- 2 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a2b9928 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +# 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: + secure: HYOC4DH7o5Oc3pMUOzHw5g8/sGZNmmbLpDoxxE+e9qlb2MIJjrBaud8T1KWNknvG2y4lcJGpE48UXYvCgtJbd6Jlk3USFntfBoHgl8iTmt7mFTfgZLvmArPYwwnFolGMHpKoegsetpzSxAKQZFpofxiXVbi9hklQMFlIzTaA2aVuVKZfU/wChQI4K4uxKgAmG/Dyr1sCy0pEp2MIV6sRt3ESK1GO6o5+4bLksoAHu6NuJQbNrueN2wWsyYKFF0FwwOk85SUOpI+bFH7yzxkE7fPDOvnrnvT/9j/sHOxXivOOLaZCIc4FcKt7S2dUK3dCLZT7+jVXX5QcWIjnbT1vlJJu5FBgwunBo2Mh3FX+s0uQ24jMQV9/11YbClqKTyiqWBZ0qLwirdxf25ACS2tHQdRnmFeu8JGRrTNiMFATROc3M62FX5qvUJe1d7lGY2tWNsmTfSQRjXI6Wn6S0sthJxmY5Uhli9GMCVwzw8ChA5qwMHZl0btqVnmOJd2HAjFTz30ZixUQzyhIgPEh6iJcKxLsHPGoXXXWFthBVh5zgzYaNOSTbQu59pMZd0rvdoBhUjqnlpVJNueVrCFiCFKVWTwsSooEn+f1Laq3RDeMjhWYdXwbHoTILoP8+KZN1L+C7l3JMz8i5I7/nIi/SrYnZjp5a63hEVNTlhZ1Nxk7xY8= + file: kll-spec-${TRAVIS_BRANCH}.pdf + skip_cleanup: true + on: + repo: kiibohd/kll-spec + tags: true + branch: + - test + - master + - 0.5 + diff --git a/README.md b/README.md index 8cf88b9..ce6c942 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,11 @@ KLL Spec [github](https://github.com/kiibohd/kll-spec) has the master copy of the [KLL Spec](https://input.club/kll/). -For convenience there keep up-to-date copies on [Overleaf](https://www.overleaf.com). -* [0.3d - Stable](https://www.overleaf.com/read/zzqbdwqjfwwf) +For convenience there are up-to-date copies are available. +* [0.3d - **Stable**](https://www.overleaf.com/read/zzqbdwqjfwwf) * [0.4](https://www.overleaf.com/read/mnnqqpnxhhyr) -* [0.5 - Next Release](https://www.overleaf.com/read/cfqydmrpfdrs) +* [![Build Status](https://travis-ci.org/kiibohd/kll-spec.svg?branch=0.5)](https://travis-ci.org/kiibohd/kll-spec) [0.5 - *Next Release*](https://www.overleaf.com/read/cfqydmrpfdrs) +* [![Build Status](https://travis-ci.org/kiibohd/kll-spec.svg?branch=master)](https://travis-ci.org/kiibohd/kll-spec) [master - Future](https://www.overleaf.com/read/cfqydmrpfdrs) Generating @@ -24,7 +25,7 @@ cmake .. make ``` -**NOTE**: Uses a lot of LaTex extra packages. It is more than likely you'll be missing some. +**NOTE**: Uses a lot of LaTex extra packages. It is more than likely you'll be missing some. See [.travis.yml](.travis.yml) for a possible set of required packages. Suggestions/Features/Fixes