-
-
Save Merovex/ea976ac431cf2dde81688b1c06954d8d to your computer and use it in GitHub Desktop.
config.yml for Latex on Circle CI 2.0
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: paperist/alpine-texlive-ja | |
steps: | |
- run: | |
name: Installing dependancies | |
command: | | |
apk add --update git patch curl | |
apk add --update ca-certificates openssl && update-ca-certificates | |
tlmgr install ulem latexdiff | |
- checkout | |
- run: cp .latexmkrc ~/.latexmkrc | |
- run: | |
name: Generating current version | |
command: | | |
latexmk main.tex; | |
mkdir /tmp/artifacts; | |
cp main.pdf /tmp/artifacts/ | |
- run: | |
name: Generating diff | |
command: | | |
latexdiff-vc -e utf8 --git -r HEAD^ -r HEAD main.tex; | |
latexmk main-diffHEAD^-HEAD.tex; | |
cp main-diffHEAD^-HEAD.pdf /tmp/artifacts/ | |
- run: | |
name: Uploading artifacts | |
command: | | |
curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/downloads" --form files=@"/tmp/artifacts/temp.pdf"; | |
curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/downloads" --form files=@"/tmp/artifacts/temp-diffHEAD^-HEAD.pdf"; | |
- store_artifacts: | |
path: /tmp/artifacts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment