Skip to content

Commit

Permalink
Adding .travis.yml for pdf release
Browse files Browse the repository at this point in the history
  • Loading branch information
haata committed Jan 15, 2018
1 parent 0e5f13d commit 31c0248
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 31c0248

Please sign in to comment.