Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
fix pdf paths
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoMlt authored Sep 25, 2020
1 parent 8306e43 commit 9958782
Showing 1 changed file with 81 additions and 53 deletions.
134 changes: 81 additions & 53 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,98 @@
# Do not build auto-tagged versions
if: repo != head_repo AND tag !~ /^[\w\.]+-\d+-\w+/

os: linux
dist: focal
language: java

addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] http://miktex.org/download/ubuntu focal universe'
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=miktex"
update: true
packages:
# LaTeX decent font processor
- cm-super
# Image processing
- inkscape
# For git latexdiff
- latexdiff
# For Minted
- python-pygments
- python3-pygments
# LaTeX
- miktex
# Debug
- tree
env:
global:
- TERM=dumb
- GRAVIS_REPO="https://github.com/DanySK/Gravis-CI.git"
- GRAVIS="$HOME/gravis"

install:
- travis_retry git clone --depth 1 $GRAVIS_REPO $GRAVIS
- sudo miktexsetup --shared=yes finish
- sudo initexmf --admin --set-config-value [MPM]AutoInstall=1
- sudo mpm --admin --package-level=basic --find-upgrades --upgrade
- pygmentize -V # debug
- inkscape --version # debug
jobs:
include:
- language: java
os: linux
dist: focal
addons:
apt:
sources:
- sourceline: 'deb [arch=amd64] http://miktex.org/download/ubuntu focal universe'
key_url: "http://keyserver.ubuntu.com/pks/lookup?op=get&search=miktex"
update: true
packages:
# LaTeX decent font processor
- cm-super
# Image processing
- inkscape
# DOT and GV support
- graphviz
# Tikz support
- gnuplot
# Color profiles support
- icc-profiles
# Better PS support
- ghostscript
# For git latexdiff
- latexdiff
# For Minted
- python-pygments
- python3-pygments
# LaTeX
- miktex
# Debug
- tree
install:
- travis_retry git clone --depth 1 $GRAVIS_REPO $GRAVIS
- sudo miktexsetup --shared=yes finish
- sudo initexmf --admin --set-config-value [MPM]AutoInstall=1
- sudo mpm --admin --package-level=basic --find-upgrades --upgrade
# Debug prints
- pygmentize -V # debug
- inkscape --version # debug
- gs --version
- dot -V

script:
- cd slides
- chmod +x gradlew
- ./gradlew buildLatex
- ls -al

after_success:
- git config --local user.name "Danilo Pianini's Travis CI automation bot"
- git config --local user.email "danilo.pianini@unibo.it"

script:
- cd slides
- chmod +x gradlew
- ./gradlew buildLatex
before_deploy:
- $GRAVIS/autotag

after_success:
- git config --local user.name "Danilo Pianini's Travis CI automation bot"
- git config --local user.email "danilo.pianini@unibo.it"
after_script:
- git checkout master
- git add gradlew
- git commit -m "[ci skip] [automatic] Make gradlew executable again"
- git push "git@github.com:${TRAVIS_REPO_SLUG}.git" master

before_deploy:
- $GRAVIS/autotag
deploy:
- provider: releases
edge: true
file:
- "slides/00 - intro/00-intro.pdf"
- "slides/01 - java-basic-tools/01-basic-tools.pdf"
- "slides/02 - java-advanced-tools/02-advanced-tools.pdf"
- "slides/03 - eclipse/03-eclipse.pdf"
- "slides/04 - dvcs-1/04-git-intro.pdf"
- "slides/05 - dvcs-2/05-branching-merging.pdf"
- "slides/06 - dvcs-testing/06-DVCS3-junit.pdf"
- "slides/07 - javadoc-jar/07-JAR-Javadoc.pdf"
- "slides/08 - code-quality-multiplatform-profiling/08-code-analysis.pdf"
- "slides/09 - dvcs-workflow/09-DVCS-Workflow.pdf"
- "slides/10 - javafx/10-JavaFX.pdf"
- "slides/13 - report-template/13-template.pdf"
on:
all_branches: true
# - language: shell
# os: linux
# dist: focal

after_script:
- git checkout master
- git add gradlew
- git commit -m "[ci skip] [automatic] Make gradlew executable again"
- git push "git@github.com:${TRAVIS_REPO_SLUG}.git" master

deploy:
- provider: releases
edge: true
file:
- "slides/*.pdf"
- "slides/**/*.pdf"
on:
all_branches: true

notifications:
email:
Expand Down

0 comments on commit 9958782

Please sign in to comment.