Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleaman committed Aug 5, 2019
2 parents cd891e1 + 7f77246 commit 0283bc6
Show file tree
Hide file tree
Showing 17 changed files with 349 additions and 505 deletions.
29 changes: 13 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
language: generic

# Dependency of the minted package and install fonts
# Use optipng and imagemagick so we can get a thumbnail of our cv
# Also need to fix imagemagick permissions https://stackoverflow.com/a/52853157
before_install:
- sudo apt-get install python-pygments
- sudo apt-get install optipng
- sudo apt-get install ghostscript
- sudo apt-get install imagemagick
- sudo sed -i '/PDF/s/none/read|write/' /etc/ImageMagick-6/policy.xml
- mkdir $HOME/.fonts
- cp -a $TRAVIS_BUILD_DIR/src/fonts/. $HOME/.fonts/
- fc-cache -f -v
Expand All @@ -21,35 +27,26 @@ before_script: cd $TRAVIS_BUILD_DIR/src/
script:
# Texliveonfly will download packages automatically
- texliveonfly --compiler=xelatex cv.tex
- texliveonfly --compiler=xelatex letter.tex
# Build CV
- latexmk --pdf -pdflatex="xelatex --shell-escape" cv.tex
# Build cover letter
- latexmk --pdf -pdflatex="xelatex --shell-escape" letter.tex

# You can use latexmk to automatically handle bibtex and references (recommended)
# - latexmk -pdf main.tex
# But you could use any other compiler as well instead of latexmk. Example:
# - pdflatex main.tex
# - bibtex main
# - pdflatex main.tex
# - pdflatex main.tex # Compile twice to fix references

# You can also pass arguments to texliveonfly:
# - texliveonfly --arguments='-shell-escape' main.tex
# Create thumbnail of first page of cv
- convert cv.pdf[0] -resize 800x800 -flatten cv_thumbnail.png
- convert cv_thumbnail.png -shave 1x1 -bordercolor black -border 1 cv_thumbnail.png
- convert cv_thumbnail.png -bordercolor None -border 20x20 \( +clone -background black -shadow 50x5+5+5 \) -compose DstOver -composite -compose Over cv_thumbnail.png
- optipng cv_thumbnail.png

notifications:
email: false

deploy:
provider: releases
skip_cleanup: true
draft: true
api_key:
secure: lOYS1AjQo4tmzOaPNJLz1ypdRo7mH3xdq1xu/8dowjKPbVg2gyjudbNBpZTDXDZ7H1u9NApz+37OV9WOl2Ze+iCkEXsOvemESPJRctTvaUE5tGJPsuPm2p/9mIFbtc0bUz1FgUXToQlsTgLMq9vE/MvOvAe4Rr7FgfgyURUzOLh6cfx5b/HxtI7judc3sed9eCby6pQTy9obtAMl2gn8hD8Yw795/Pu3TUiEZwa/faTCS0uHUFEx1fg34QsYfjr4iRwtfk/JnIgD9Kq2LM8+pnOyC+JZ94LyopHYEbLfTb4IwppN+5QSDKDi9N+H0+yKBwV13XfaaJbYpVNng6o7XvuDOdj9GA/rl/968Xl580iu/pDspJRQcmZlZjnEonv4AqedchG2jo6DdOmbb4olnW5JaM4lSBBdL/UYiBdBTq19gRc88GAiZc6N5pydQGG7rs5tVARQTF3Ig+SD21sN4Qf31Bh6nrNbAPTRl4Pu+RAWWIcuzMpL18ask/0wz0V9MgKGrwxEYretqWEdN+wxGeOOSLdT5O3h0St9wISXwDgWc+cF/A+UCxlDT1SaLehxR7VHGBo0ZRLeKdDHEnVBeB5294I8fQje3F6DN603DXw20m9S6yflAQl8mlcwg/5g38vpHv5mdX7m0Q0iUDbUrrt8JMrKuMvAz0NvILd3WNg=
file:
- "./cv.pdf"
- "./letter.pdf"
- "./cv_thumbnail.png"
on:
repo: chrisleaman/cv
all_branches: true
tags: true
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# cv
# Chris Leaman - CV

[![Build Status](https://travis-ci.com/chrisleaman/cv.svg?branch=master)](https://travis-ci.com/chrisleaman/cv)

<p align="center">
<a href="https://github.com/chrisleaman/cv/releases/download/untagged-fefa30c938b113622f50/cv.pdf">
<img src="images/cv_thumbnail.png"
alt="CV thumbnail" width="300"/>
</a>
</p>

This repo contains contains the code for my resume. General workflow is to write to LaTeX, push to git and then let Travis-CI automatically build the .pdf files using xelatex. The advantages of this workflow is that a working LaTeX distribution is not needed locally and different versions of the resume can be built on different branches.

The latest compiled `.pdf` can always be found on the [releases page](https://github.com/chrisleaman/cv/releases).

Useful references:
- [PHPirates/travis-ci-latex-pdf](https://github.com/PHPirates/travis-ci-latex-pdf#deploy): For instructions on setting up Travis-CI integration
- [depressiveRobot/friggeri-cv-a4](https://github.com/depressiveRobot/friggeri-cv-a4): Resume template, although I've made some tweaks to mine
Binary file added images/cv_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0283bc6

Please sign in to comment.