From b11d8ebbb4f52f194a81149b84c70a08f02c7f42 Mon Sep 17 00:00:00 2001 From: Frank Quinn Date: Tue, 8 Oct 2019 22:09:15 +0100 Subject: [PATCH] Updated to include linux tarball for RHEL7 Signed-off-by: Frank Quinn --- .appveyor.yml | 2 ++ release_scripts/Dockerfile | 2 +- release_scripts/build-package.sh | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 05e221a5a..9bbd29d28 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -89,5 +89,7 @@ artifacts: name: OpenMAMA RPM Package - path: '*.zip' name: OpenMAMA Windows Release + - path: '*.tar.gz' + name: OpenMAMA Linux Install Tarball test: off diff --git a/release_scripts/Dockerfile b/release_scripts/Dockerfile index f428bc742..aeee9a286 100644 --- a/release_scripts/Dockerfile +++ b/release_scripts/Dockerfile @@ -67,5 +67,5 @@ RUN cp profiles/profile.openmama . && rm -rf profiles # When RPMs are generated, they'll go here WORKDIR $RELEASE_DIR -# Generate the package (deb / rpm / tarball). Will become script +# Generate the package (deb / rpm / tarball). CMD $SRC_DIR/release_scripts/build-package.sh diff --git a/release_scripts/build-package.sh b/release_scripts/build-package.sh index 015287251..5b4fcf0b9 100755 --- a/release_scripts/build-package.sh +++ b/release_scripts/build-package.sh @@ -70,3 +70,9 @@ fpm -s dir \ $DEPENDS_FLAGS \ -p openmama-$VERSION-1.$DISTRIB_PACKAGE_QUALIFIER.x86_64.$PACKAGE_TYPE \ --description "OpenMAMA high performance Market Data API" . + +# Only generate the tarball for RHEL 7 +if [ "$DISTRIB_PACKAGE_QUALIFIER" == "el7" ] +then + tar -C $PREFIX -czf openmama-$VERSION.linux.x86_64.tar.gz --transform "s,^\./opt/openmama/,openmama-$VERSION/," ./ +fi