Skip to content

Commit

Permalink
Added build script for jetty-test-helper package (ppc64le#1384)
Browse files Browse the repository at this point in the history
* Added build script for jetty-test-helper package

* Updated as per review comments
  • Loading branch information
kumarvikas2020 authored Jan 14, 2022
1 parent 3257e33 commit 52ab9cb
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions j/jetty/jetty-test-helper_5.3_ubi_8.4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# ----------------------------------------------------------------------------
#
# Package : jetty-test-helper
# Version : jetty-test-helper-5.3
# Source repo : https://github.com/eclipse/jetty.toolchain
# Tested on : UBI 8.4
# Language : Java
# Travis-Check : True
# Script License : Apache License, Version 2 or later
# Maintainer : Vikas <[email protected]>
#
# Disclaimer : This script has been tested in root mode on given
# ========== platform using the mentioned version of the package.
# It may not work as expected with newer versions of the
# package and/or distribution. In such case, please
# contact "Maintainer" of this script.
#
# ----------------------------------------------------------------------------
#!/bin/bash

set -e

if [ -z "$1" ]; then
export PACKAGE_VERSION=jetty-test-helper-5.3
else
export PACKAGE_VERSION=$1
fi
if [ -d "jetty.toolchain" ] ; then
rm -rf jetty.toolchain
fi

# Dependency installation
dnf install -y git java-1.8.0-openjdk-devel maven

# Download the repos
git clone https://github.com/eclipse/jetty.toolchain.git

# Checkout version
cd jetty.toolchain
git checkout $PACKAGE_VERSION
ret=$?
if [ $ret -eq 0 ] ; then
echo "$PACKAGE_VERSION found to checkout "
else
echo "$PACKAGE_VERSION not found "
exit
fi

mvn install -DskipTests=true
ret=$?
if [ $ret -ne 0 ] ; then
echo "Build failed "
else
mvn test
ret=$?
if [ $ret -ne 0 ] ; then
echo "Tests failed "
else
echo "Build & unit tests Successful "
fi
fi

0 comments on commit 52ab9cb

Please sign in to comment.