This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
81 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
|
||
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 "[email protected]" | ||
after_script: | ||
- git checkout master | ||
- git add gradlew | ||
- git commit -m "[ci skip] [automatic] Make gradlew executable again" | ||
- git push "[email protected]:${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 "[email protected]:${TRAVIS_REPO_SLUG}.git" master | ||
|
||
deploy: | ||
- provider: releases | ||
edge: true | ||
file: | ||
- "slides/*.pdf" | ||
- "slides/**/*.pdf" | ||
on: | ||
all_branches: true | ||
|
||
notifications: | ||
email: | ||
|