CI downloads plantuml (#94)
Fixes #73 Now the latest version of PlantUML is downloaded as part of the CI script. This has two consequences: we always test against the latest and greatest PlantUML version. PlantUML evolves at a much higher pace than plantuml-mode. This allows for some sanity check of our code with the upstream project. builds are not reproducible As a side effect of always downloading a (potentially) new PlantUML version, re-running the build for an old commit can lead to different outcomes. This is usually a big no-no but given the limited efforts currently spent on plantuml-mode I find it more convenient to immediately raise a flag if a new version of PlantUML causes issues.
This commit is contained in:
parent
56f5cf7276
commit
689c6a6950
4 changed files with 26 additions and 0 deletions
|
@ -4,6 +4,11 @@ version: 2.0
|
||||||
default: &default-steps
|
default: &default-steps
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- run:
|
||||||
|
# Note: this makes it hard to reproduce builds but easier to spot incompatibilities with
|
||||||
|
# newer PlantUML releases. Current trade off seems acceptable.
|
||||||
|
name: Download the latest PlantUML release
|
||||||
|
command: sh ./bin/download-plantuml.sh
|
||||||
- run:
|
- run:
|
||||||
name: Update APT packages
|
name: Update APT packages
|
||||||
command: apt-get update
|
command: apt-get update
|
||||||
|
|
20
bin/download-plantuml.sh
Normal file
20
bin/download-plantuml.sh
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Where the script is executed
|
||||||
|
CURRENT_PATH="$(dirname "$(readlink -f "$0")")"
|
||||||
|
|
||||||
|
# Where to download the file
|
||||||
|
OUTPUT_PATH="${CURRENT_PATH}/plantuml.jar"
|
||||||
|
|
||||||
|
# Retrieve the list of versions, in XML format, only one result (the latest)
|
||||||
|
VERSIONS_URL='https://search.maven.org/solrsearch/select?q=g:net.sourceforge.plantuml+AND+a:plantuml&core=gav&start=0&rows=1&wt=xml'
|
||||||
|
|
||||||
|
# Only match the contents of the version (name="v") XML tag
|
||||||
|
LATEST_VERSION="$(curl -s "${VERSIONS_URL}" | grep -oP '(?<=<str name="v">).*(?=</str>)')"
|
||||||
|
|
||||||
|
# Compose the download link
|
||||||
|
DOWNLOAD_URL="https://search.maven.org/remotecontent?filepath=net/sourceforge/plantuml/plantuml/${LATEST_VERSION}/plantuml-${LATEST_VERSION}.jar"
|
||||||
|
|
||||||
|
# finally, download the JAR file
|
||||||
|
echo "Downloading PlantUML v${LATEST_VERSION} into ${OUTPUT_PATH}"
|
||||||
|
curl -so "${OUTPUT_PATH}" "${DOWNLOAD_URL}" 2>/dev/null
|
BIN
bin/plantuml.jar
BIN
bin/plantuml.jar
Binary file not shown.
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
;;; Change log:
|
;;; Change log:
|
||||||
;;
|
;;
|
||||||
|
;; version 1.2.10, 2019-04-03 Avoid messing with window layouts and buffers -- courtesy of https://github.com/wailo
|
||||||
;; version 1.2.9, Revamped indentation support, now working with a greater number of keywords
|
;; version 1.2.9, Revamped indentation support, now working with a greater number of keywords
|
||||||
;; version 1.2.8, 2019-01-07 Support indentation for activate / deactivate blocks; allow customization of `plantuml-java-args'
|
;; version 1.2.8, 2019-01-07 Support indentation for activate / deactivate blocks; allow customization of `plantuml-java-args'
|
||||||
;; version 1.2.7, 2018-08-15 Added support for indentation; Fixed the comiling error when installing with melpa
|
;; version 1.2.7, 2018-08-15 Added support for indentation; Fixed the comiling error when installing with melpa
|
||||||
|
|
Loading…
Reference in a new issue