Tesi magistrale
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
826 B

  1. language: generic
  2. dist: bionic
  3. install:
  4. - source ./texlive/texlive_install.sh
  5. cache:
  6. directories:
  7. - "/tmp/texlive"
  8. - "$HOME/.texlive"
  9. before_install:
  10. - openssl aes-256-cbc -K $encrypted_baf79bfacc4c_key -iv $encrypted_baf79bfacc4c_iv
  11. -in deploy_key.enc -out deploy_key -d
  12. - chmod 600 deploy_key
  13. before_script: cd $TRAVIS_BUILD_DIR
  14. script:
  15. - texliveonfly main.tex
  16. - latexmk -pdf main.tex
  17. after_script:
  18. - export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
  19. - tlmgr list --only-installed | grep -oP 'i \K.+?(?=:)'
  20. after_success:
  21. - rsync -e "ssh -p ${SFTP_PORT} -o StrictHostKeyChecking=no -i./deploy_key" main.pdf ${SFTP_HOST}:${SFTP_PREFIX}_${TRAVIS_BRANCH}_latest.pdf
  22. - rsync -e "ssh -p ${SFTP_PORT} -o StrictHostKeyChecking=no -i./deploy_key" main.pdf ${SFTP_HOST}:${SFTP_PREFIX}_${TRAVIS_BRANCH}_${TRAVIS_JOB_NUMBER}.pdf