-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1057 from abelsromero/display-upstream-test-in-ac…
…tions Display upstream test in actions
- Loading branch information
Showing
6 changed files
with
67 additions
and
39 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
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
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# This script runs the AsciidoctorJ tests against the specified ref of the Asciidoctor Ruby gem. | ||
|
||
set -euo pipefail | ||
|
||
# to build against a tag, set REF to a git tag name (e.g., refs/tags/v1.5.2) | ||
REF=${1:-refs/heads/master} | ||
if [[ $REF != refs/* ]]; then | ||
REF=refs/heads/$REF | ||
fi | ||
readonly BASE_REF="${REF##*/}" | ||
readonly SRC_DIR="asciidoctor-${BASE_REF#v}" | ||
readonly WORKING_DIR="build/maven" | ||
|
||
rm -rf $WORKING_DIR && mkdir -p $WORKING_DIR | ||
pushd $WORKING_DIR | ||
|
||
## Install gem | ||
wget --quiet -O $SRC_DIR.zip https://github.com/asciidoctor/asciidoctor/archive/$REF.zip | ||
unzip -q $SRC_DIR.zip | ||
cp ../../ci/asciidoctor-gem-installer.pom $SRC_DIR/pom.xml | ||
cd $SRC_DIR | ||
readonly ASCIIDOCTOR_VERSION=`grep 'VERSION' ./lib/asciidoctor/version.rb | sed "s/.*'\(.*\)'.*/\1/" | sed "s/[.]dev$/.dev-SNAPSHOT/"` | ||
# we don't use sed -i here for compatibility with OSX | ||
sed "s;<version></version>;<version>$ASCIIDOCTOR_VERSION</version>;" pom.xml > pom.xml.sedtmp && \ | ||
mv -f pom.xml.sedtmp pom.xml | ||
|
||
# we override the jruby version here with one supported by java9, additionally java9 needs some add-opens arguments that need to be ignored on older jvms | ||
mvn install -B --no-transfer-progress -Dgemspec=asciidoctor.gemspec -Djruby.version=9.2.17.0 -Djruby.jvmargs="-XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED" | ||
popd | ||
|
||
## Test against installed gem | ||
./gradlew -S -Pskip.signing -PasciidoctorGemVersion=$ASCIIDOCTOR_VERSION -PuseMavenLocal=true check | ||
exit $? |
This file was deleted.
Oops, something went wrong.