Add tests for R builds
This commit is contained in:
parent
69b268e6f7
commit
1de359f3e6
1 changed files with 505 additions and 0 deletions
26
test/test-rhel.sh
Executable file
26
test/test-rhel.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
PKG_FILE=/packages/${OS_IDENTIFIER}/R-${R_VERSION}-1-1.x86_64.rpm
|
||||
|
||||
if [ ! -f ${PKG_FILE} ]; then
|
||||
echo "No package found, skipping tests"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
dnf -y install dnf-plugins-core
|
||||
dnf config-manager --set-enabled crb
|
||||
dnf -y install epel-release
|
||||
dnf -y install ${PKG_FILE}
|
||||
|
||||
# Show rpm info
|
||||
rpm -qi R-${R_VERSION}
|
||||
|
||||
/test/test-r.sh
|
||||
|
||||
dnf -y remove R-${R_VERSION}
|
||||
|
||||
if [ -d /opt/R/${R_VERSION} ]; then
|
||||
echo "Failed to uninstall completely"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Reference in a new issue