Skip to content

Prescrypto/WPCI

Repository files navigation

WPCI

White paper continuous deployment system

If you just need to render a latex repo then you can go to (this option cant render private repos):

https://latex-ci.herokuapp.com/api/v1/renderurl?url=<GIT OR OVERLEAF URL FOR THE REPO>&maintex=<MAIN TEX FILE>

To test it first you need to create a user with:

curl -X POST \
  http://latex-ci.herokuapp.com/api/v1/auth/signin \
  -d '{"username":"youruser@yourcompany.com","password":"password"}'

then to login and get a TOKEN to post to the endpoint run the following:

  curl -X POST \
  http://latex-ci.herokuapp.com/api/v1/auth/login \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{"username":"youruser@yourcompany.com","password":"password"}'

and finally you can post a url and recieve an email in your user email with the pdf rendered from your repository:

  curl -X POST \
  http://latex-ci.herokuapp.com/api/v1/renderrepohash \
  -H 'Authorization: Bearer <TOKEN>' \
  -d '{"remote_url":"<URL FROM GITHUB OR OVERLEAF>", "main_tex":"main.tex"}'

For Development

Install vagrant, virtualbox, comandline tools, git. Then!


$ vagrant up
$ vagrant ssh
$ cd /vagrant/
$ gunicorn app:application --bind=0.0.0.0:8000 --timeout 120

When running locally, disable OAuthlib's HTTPs verification. ACTION ITEM for developers: When running in production do not leave this option enabled. os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'

Latex Notes

  • TO ADD new package => Just add the package on texlive.packages file and do a vagrant up
  • TexLive install Dir => ./build/.texlive on vagrant /vagrant/build/.textlive