For advance workflow, follow this post: Document building & versioning with TeX document, Git, Continuous Integration & Dropbox
Setup Travis CI continuous integration and deployment service to build PDF from LaTeX document.
This post presumes that,
gemare already installed.
2. Add tex files
Add your tex files to
tex folder of your repository.
3. Configure Travis-CI
3.1. Setup Github repo
If you have forked this repo, then directly go to Settings option, otherwise, first create a new repository on Github and then, then go to Settings option of your repository.
Click on Webhooks & Services and then Add service
Select Travis CI
Add your Travis CI username and Token
3.2. Setup Travis CI
Go to Travis CI
Toggle on your repository
3.3. Install Travis Command-line Tool
To configure Travis build to deploy generated PDF to Github releases, we have to get Github OAuth Token. To get it and securely embed it into
.travis.yml file, we have to install Travis Command-line Tool
Provide your Github username and password, to generate token and encrypt it on the go. This will also add it to your
To deploy our file before get removed by Travis on
clean, we have to disable it. Modify
.travis.yml content according to following code.
4. Git commit, tag and push
In order to build PDF, we must commit changes and tag it to a version/release. Then push it to remote Github repository.
After a successful build, you can see your PDF files available at
releases under your Github repository.