.travis.yml 1.89 KB
dist: trusty
sudo: false

git:
  submodules: false
  
before_install:
  - git submodule update --init --remote --recursive

addons:
  apt:
    packages:
    - texlive-base
    - texlive-xetex
    - texlive-latex-recommended
    - texlive-latex-extra
    - texlive-extra-utils
    - texlive-fonts-recommended
    - texlive-font-utils
    - texlive-lang-french
    - texlive-math-extra
    - texlive-pictures
    - latex-xcolor
    - texlive-bibtex-extra
    - pgf
    - lmodern
    - biber
    - latexmk
    - ghostscript

script:
- latexmk -f -r swr-class/latexmkrc || true
- gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPDFSETTINGS=/ebook -sOutputFile="build/SW-Redemption, Livre du joueur.pdf" build/swr-livre-joueur.pdf

before_deploy:
  - cp "build/SW-Redemption, Livre du joueur.pdf" "build/SW-Redemption, Livre du joueur-${TRAVIS_TAG}.pdf"
  - cp "img/swr-fiche-perso.pdf" "build/swr-fiche-perso-${TRAVIS_TAG}.pdf"

deploy:
  - provider: releases
    api_key:
      secure: yo33FhlbiRGZ3VaeCEhBOrpcDlzDHu3GdxY5CliGiAR8+wti99AxuPG8vQQb/1YifPzywaGrEYpHssL7J/yhPhQKwlLeHvrNmGlKo2HB+F+nE7AzfBohP4xp+uYMLlgobSlHvOu/8goD7LtGiJtlf3emK4g1H5Q5Qo+796lFqtaqkKwovyfxZku1supF9iRgKYlDyfszm7cdLs78KOqAMRxXutUgx9sp1TAROrf3NPGAQMJFm8i0rZgtsKZPQhyJi4g+hj7ziCmTWW7KvLQB/Jl9uRm+srGglVUiwHf0equQKNNQLuzEq5uuVhK7mnApxl0G9fLOJZMlDtasUbPCKViLgPBj/OIUX5d2E/xZ3JYo5IXR/BlBBHa03tKCWiq4TX2/lxhkZJ+7meHZEYQhhMmIQRhK+bfPZ0yM5P9XKNS/BPpAlfZDmqc0mjNBQOccWR+xkQICAzXtzVEeMW1c7vqR0ILy/FwwvCShi8SMN/yvWR9hD23lvrtBXPz3S5AkEWaPoAKfxvtMmtehiiXUYSXzyDn+h3JycG3Vnbwdhu92VG9zoYLtcf7hy2+Jo5wiOcj6u+Gu3+811wDag1kixmNVTWGIeuxklVx/qMbsSo3cAdX6kLk5D8ZNdr7AvaY0O0cvRy5/sUem1xpXEmelASHdFhq5/f7jCXNdk2N7qso=
    file: 
      - "build/SW-Redemption, Livre du joueur-${TRAVIS_TAG}.pdf"
      - "build/swr-fiche-perso-${TRAVIS_TAG}.pdf"
    skip_cleanup: true
    on:
      tags: true
      repo: Marthym/jdrp-sw-redemption

notifications:
  email: false