Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
jenkins : expand OS list with NS3, as I just installed ns3 3.32 on nixos
authorAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 15 Dec 2020 17:34:57 +0000 (18:34 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Tue, 15 Dec 2020 17:34:57 +0000 (18:34 +0100)
tools/jenkins/build.sh

index fa0f683..73a3759 100755 (executable)
@@ -145,7 +145,7 @@ mkdir "$WORKSPACE"/build
 cd "$WORKSPACE"/build
 
 have_NS3="no"
 cd "$WORKSPACE"/build
 
 have_NS3="no"
-if dpkg -l libns3-dev 2>&1|grep -q "ii  libns3-dev" ; then
+if [ "$os" == "Debian" ] || [ "$os" == "Ubuntu" ] || [ "$os" == "NixOS" ] ; then 
   have_NS3="yes"
 fi
 echo "XX have_NS3: ${have_NS3}"
   have_NS3="yes"
 fi
 echo "XX have_NS3: ${have_NS3}"