-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copying build-related files from master
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |