From 776a9747ca4fae66a504575595f4e1685fbf9a4f Mon Sep 17 00:00:00 2001 From: edoapra Date: Sun, 13 Nov 2022 16:53:48 -0800 Subject: [PATCH] skip rpm install on selfhosted runner [ci skip] --- travis/build_env.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/travis/build_env.sh b/travis/build_env.sh index c7aa162b30..43237a784f 100755 --- a/travis/build_env.sh +++ b/travis/build_env.sh @@ -89,10 +89,12 @@ echo DISTR is "$DISTR" fi if [[ "$os" == "Linux" ]]; then if [[ "$DISTR" == "fedora" ]] || [[ "$DISTR" == "centos" ]] ; then + env rpminst=dnf if [[ "$DISTR" == "centos" ]] ; then rpminst=yum fi + if [[ "$HOSTNAME" != "fedoraqemuwe40672" ]]; then sudo $rpminst udate; sudo $rpminst -y install perl perl python3-devel time patch openblas-serial64 openmpi-devel cmake gcc-gfortran unzip which make tar bzip2 openssh-clients rsync # module load mpi if [[ "$MPI_IMPL" == "openmpi" ]]; then @@ -101,6 +103,7 @@ fi echo ready only for openmpi exit 1 fi + fi export PATH=/usr/lib64/"$MPI_IMPL"/bin:$PATH export LD_LIBRARY_PATH=/usr/lib64/"$MPI_IMPL"/lib:$LD_LIBRARY_PATH which mpif90