Skip to content

Commit

Permalink
Copying build-related files from master
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Jan 22, 2018
1 parent 44a3462 commit 893d604
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: required
before_install:
- sudo apt-get -qq update
- sudo apt-get install texlive texlive-latex3
- sudo apt install texlive-latex-extra
script:
- ./build.sh
deploy:
provider: script
script: ./travis_deploy.sh
skip_cleanup: true
on:
branch: master
env:
global:
- ENCRYPTION_LABEL="19a81de38b62"
- COMMIT_AUTHOR_EMAIL="[email protected]"
- COMMIT_AUTHOR="Travis CI"
- PUSH_REPO="[email protected]:ethereum/yellowpaper.git"
23 changes: 23 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -e

if [ -d ".git" ]; then

SHA=`git rev-parse --short --verify HEAD`
DATE=`git show -s --format="%cd" --date=short HEAD`
REV="$SHA - $DATE"

else

REV="unknown revision"

fi

echo "\newcommand{\YellowPaperVersionNumber}{$REV}" > Version.tex

pdflatex -interaction=errorstopmode -halt-on-error Paper.tex && \
bibtex Paper && \
pdflatex -interaction=errorstopmode -halt-on-error Paper.tex && \
pdflatex -interaction=errorstopmode -halt-on-error Paper.tex && \
pdflatex -interaction=errorstopmode -halt-on-error Paper.tex

0 comments on commit 893d604

Please sign in to comment.