From 404fd0583a8815d5a8c104c03d32b5042f53b81f Mon Sep 17 00:00:00 2001 From: LEGRAND Simon Date: Fri, 17 Jan 2025 17:19:27 +0100 Subject: [PATCH] Clean Jenkins related files --- etc/jenkins/README.md | 305 ------------------ etc/jenkins/blob/build.sh | 3 - etc/jenkins/blob/build_PETSc.sh | 6 - etc/jenkins/blob/check.sh | 3 - etc/jenkins/blob/install.sh | 3 - etc/jenkins/blob/uninstall.sh | 3 - etc/jenkins/catchErrorLog.sh | 27 -- .../change_compiler-Darwin-14.5.0-1.sh | 4 - .../change_compiler-Darwin-14.5.0-2.sh | 4 - .../change_compiler-Darwin-14.5.0-3.sh | 4 - .../change_compiler-Darwin-14.5.0-4_mpich.sh | 8 - ...change_compiler-Darwin-14.5.0-4_openmpi.sh | 8 - .../change_compiler-Darwin-14.5.0-5_mpich.sh | 8 - ...change_compiler-Darwin-14.5.0-5_openmpi.sh | 8 - .../change_compiler-Darwin-17.5.0-1.sh | 4 - .../change_compiler-Darwin-17.5.0-2.sh | 4 - .../change_compiler-Darwin-17.5.0-3.sh | 4 - .../change_compiler-Darwin-17.5.0-5_mpich.sh | 8 - ...change_compiler-Darwin-17.5.0-5_openmpi.sh | 8 - .../change_compiler-Darwin-17.7.0-4_mpich.sh | 8 - ...change_compiler-Darwin-17.7.0-4_openmpi.sh | 8 - .../change_compiler-Darwin-18.5.0-1.sh | 4 - .../change_compiler-Darwin-18.5.0-2.sh | 4 - .../change_compiler-Darwin-18.5.0-3.sh | 4 - .../change_compiler-Darwin-18.5.0-4_mpich.sh | 8 - ...change_compiler-Darwin-18.5.0-4_openmpi.sh | 8 - .../change_compiler-Darwin-18.5.0-5_mpich.sh | 8 - ...change_compiler-Darwin-18.5.0-5_openmpi.sh | 8 - etc/jenkins/deployRelease/README.md | 43 --- etc/jenkins/deployRelease/createRelease.sh | 33 -- etc/jenkins/deployRelease/deployAppImage.sh | 36 --- etc/jenkins/deployRelease/deployDEB.sh | 88 ----- etc/jenkins/deployRelease/deployEXE.sh | 41 --- etc/jenkins/deployRelease/deployPKG.sh | 5 - etc/jenkins/jobCMake.sh | 22 -- etc/jenkins/jobCMakeWindows.sh | 23 -- .../check_ffpetsc/check_ffpetscVersion.sh | 11 - .../job_Unix/check_ffpetsc/job_ffpetsc.sh | 63 ---- .../check_ffpetsc/update_ffpetsc_mpich.sh | 37 --- .../check_ffpetsc/update_ffpetsc_openmpi.sh | 37 --- etc/jenkins/job_Unix/job1.sh | 67 ---- etc/jenkins/job_Unix/job2.sh | 67 ---- etc/jenkins/job_Unix/job3.sh | 68 ---- etc/jenkins/job_Unix/job4_mpich.sh | 87 ----- etc/jenkins/job_Unix/job4_openmpi.sh | 87 ----- etc/jenkins/job_Unix/job5_mpich.sh | 81 ----- etc/jenkins/job_Unix/job5_openmpi.sh | 81 ----- etc/jenkins/job_Unix/job_petsc.sh | 69 ---- .../job_Unix/petsc/install-petsc-mpich.sh | 32 -- .../job_Unix/petsc/install-petsc-openmpi.sh | 32 -- etc/jenkins/job_Windows/job1.sh | 63 ---- etc/jenkins/job_Windows/job3.sh | 64 ---- etc/jenkins/job_Windows/job4.sh | 68 ---- etc/jenkins/job_Windows/job5.sh | 65 ---- etc/jenkins/job_Windows/job_petsc.sh | 31 -- .../resultForJenkins/resultForJenkins.sh | 82 ----- 56 files changed, 1965 deletions(-) delete mode 100644 etc/jenkins/README.md delete mode 100755 etc/jenkins/blob/build.sh delete mode 100755 etc/jenkins/blob/build_PETSc.sh delete mode 100755 etc/jenkins/blob/check.sh delete mode 100755 etc/jenkins/blob/install.sh delete mode 100755 etc/jenkins/blob/uninstall.sh delete mode 100644 etc/jenkins/catchErrorLog.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-1.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-2.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-3.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_openmpi.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_openmpi.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-1.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-2.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-3.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_openmpi.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_openmpi.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-1.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-2.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-3.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_openmpi.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_mpich.sh delete mode 100644 etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_openmpi.sh delete mode 100644 etc/jenkins/deployRelease/README.md delete mode 100755 etc/jenkins/deployRelease/createRelease.sh delete mode 100755 etc/jenkins/deployRelease/deployAppImage.sh delete mode 100755 etc/jenkins/deployRelease/deployDEB.sh delete mode 100755 etc/jenkins/deployRelease/deployEXE.sh delete mode 100755 etc/jenkins/deployRelease/deployPKG.sh delete mode 100644 etc/jenkins/jobCMake.sh delete mode 100644 etc/jenkins/jobCMakeWindows.sh delete mode 100755 etc/jenkins/job_Unix/check_ffpetsc/check_ffpetscVersion.sh delete mode 100755 etc/jenkins/job_Unix/check_ffpetsc/job_ffpetsc.sh delete mode 100755 etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_mpich.sh delete mode 100755 etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_openmpi.sh delete mode 100755 etc/jenkins/job_Unix/job1.sh delete mode 100755 etc/jenkins/job_Unix/job2.sh delete mode 100755 etc/jenkins/job_Unix/job3.sh delete mode 100755 etc/jenkins/job_Unix/job4_mpich.sh delete mode 100755 etc/jenkins/job_Unix/job4_openmpi.sh delete mode 100755 etc/jenkins/job_Unix/job5_mpich.sh delete mode 100755 etc/jenkins/job_Unix/job5_openmpi.sh delete mode 100755 etc/jenkins/job_Unix/job_petsc.sh delete mode 100755 etc/jenkins/job_Unix/petsc/install-petsc-mpich.sh delete mode 100755 etc/jenkins/job_Unix/petsc/install-petsc-openmpi.sh delete mode 100755 etc/jenkins/job_Windows/job1.sh delete mode 100755 etc/jenkins/job_Windows/job3.sh delete mode 100755 etc/jenkins/job_Windows/job4.sh delete mode 100755 etc/jenkins/job_Windows/job5.sh delete mode 100755 etc/jenkins/job_Windows/job_petsc.sh delete mode 100755 etc/jenkins/resultForJenkins/resultForJenkins.sh diff --git a/etc/jenkins/README.md b/etc/jenkins/README.md deleted file mode 100644 index a6ddc92c0..000000000 --- a/etc/jenkins/README.md +++ /dev/null @@ -1,305 +0,0 @@ -# Windows 10 - -- [MSYS2](https://www.msys2.org/) -- [git](https://git-scm.com/downloads) -- [Microsoft MPI](https://www.microsoft.com/en-us/download/details.aspx?id=100593) - -MSYS2 packages: - -``` -pacman -S autoconf automake-wrapper bison bsdcpio make git mingw-w64-x86_64-toolchain mingw-w64-x86_64-freeglut patch python \ - flex pkg-config pkgfile tar unzip mingw-w64-x86_64-cmake mingw-w64-x86_64-msmpi mingw-w64-x86_64-gsl \ - mingw-w64-x86_64-hdf5 mingw-w64-x86_64-openblas -pacman -R mingw-w64-x86_64-python mingw-w64-x86_64-gdb mingw-w64-x86_64-gdb-multiarch - -``` - -# Ubuntu 16.04 - VM0 - -``` -sudo apt install gcc g++ gfortran m4 patch git liblapack-dev flex bison -``` - -# Ubuntu 16.04 - VM1 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libopenmpi-dev libhdf5-dev libgsl-dev flex bison -``` - -# Ubuntu 16.04 - VM2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -``` - -[OpenMPI compilation](#openmpi)4.0.2 -[MPICH compilation](#mpich)3.3.2 - -# Ubuntu 16.04 - VM2-2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -local Petsc 3.12.4 installed on /Users/Shared (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi)4.0.2 -[MPICH compilation](#mpich)3.3.2 - -# Ubuntu 18.04 - VM0 - -``` -sudo apt install gcc g++ gfortran m4 patch git liblapack-dev flex bison -``` - -# Ubuntu 18.04 - VM1 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libopenmpi-dev libhdf5-dev libgsl-dev flex bison -``` - -# Ubuntu 18.04 - VM2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -``` - -[OpenMPI compilation](#openmpi)4.0.2 -[MPICH compilation](#mpich)3.3.2 - -# Ubuntu 18.04 - VM2-2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -local Petsc 3.12.4 installed on /Users/Shared (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi)4.0.3 -[MPICH compilation](#mpich)3.3.2 - -# Ubuntu 19.10 - VM0 - -``` -sudo apt install gcc g++ gfortran m4 patch git liblapack-dev flex bison -``` - -# Ubuntu 19.10 - VM1 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libopenmpi-dev libhdf5-dev libgsl-dev flex bison -``` - -# Ubuntu 19.10 - VM2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -``` - -[OpenMPI compilation](#openmpi)4.0.2 -[MPICH compilation](#mpich)3.3.2 - -# Ubuntu 19.10 - VM2-2 - -``` -sudo apt install gcc g++ gfortran m4 patch git libblas-dev liblapack-dev libsuitesparse-dev libhdf5-dev libgsl-dev flex bison wget cmake autoconf automake autotools-dev -local Petsc 3.12.4 installed on /builds/Shared/ (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi)4.0.2 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.10.5 - VM0 (Xcode 7.2.1, gcc g++ gfortran 5.1) - -``` -brew install gcc@4.9 m4 git flex bison -``` - -# MacOS 10.10.5 - VM1 (Xcode 7.2.1, gcc g++ gfortran 5.1) - -``` -brew install gcc@4.9 m4 git flex bison suitesparse-4.5.4 hdf5 -``` - -# MacOS 10.10.5 - VM2 (Xcode 7.2.1, gcc g++ gfortran 5.1) - -``` -brew install gcc@4.9 m4 git flex bison suitesparse-4.5.4 hdf5 cmake wget autoconf automake -``` - -[OpenMPI compilation](#openmpi) 2.1.6 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.10.5 - VM2-2 (Xcode 7.2.1, gcc g++ gfortran 5.1) - -``` -brew install gcc@4.9 m4 git flex bison suitesparse-4.5.4 hdf5 cmake wget autoconf automake -local Petsc 3.12.4 installed on /Users/Shared (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi) 2.1.6 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.13 - VM0 - -``` -brew install gcc m4 git flex bison -``` - -# MacOS 10.13 - VM1 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 -``` - -# MacOS 10.13 - VM2 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake -``` - -[OpenMPI compilation](#openmpi) 4.0.1 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.13 - VM2-2 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake -local Petsc 3.12.4 installed on /Users/Shared (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi)4.0.1 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.14 - VM0 - -``` -brew install gcc m4 git flex bison -``` - -# MacOS 10.14 - VM1 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 -``` - -# MacOS 10.14 - VM2 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake -``` - -[OpenMPI compilation](#openmpi) 4.0.3 -[MPICH compilation](#mpich)3.3.2 - -# MacOS 10.14 - VM2-2 - -``` -brew install gcc m4 git flex bison suitesparse hdf5 cmake wget autoconf automake -local Petsc 3.12.4 installed on /Users/Shared (mpich and openmpi version) -``` - -[OpenMPI compilation](#openmpi)4.0.3 -[MPICH compilation](#mpich)3.3.2 - -# Windows 7 and 10 - all VM - -``` -pacman -S autoconf automake-wrapper bash bash-completion \ - bison bsdcpio bsdtar bzip2 coreutils curl dash file filesystem \ - findutils flex gawk gcc gcc-fortran gcc-libs grep gzip inetutils info less lndir \ - make man-db git mingw-w64-x86_64-freeglut mingw-w64-x86_64-toolchain mingw-w64-x86_64-gsl mingw-w64-x86_64-hdf5 \ - mingw-w64-x86_64-openblas mintty msys2-keyring \ - msys2-runtime ncurses pacman pacman-mirrors pactoys-git patch pax-git python \ - perl pkg-config pkgfile rebase sed tar tftp-hpa time tzcode unzip util-linux which \ - mingw-w64-x86_64-libmicroutils mingw-w64-x86_64-cmake -pacman -R mingw-w64-x86_64-gcc-ada mingw-w64-x86_64-gcc-objc mingw-w64-x86_64-gdb mingw-w64-x86_64-gdb-multiarch mingw-w64-x86_64-python -``` - -[MSMPI 10.1.2](https://www.microsoft.com/en-us/download/details.aspx?id=100593) - -# OpenMPI - -``` -#MacOS 10.10.5 -curl -L https://download.open-mpi.org/release/open-mpi/v2.1/openmpi-2.1.6.tar.gz--output openmpi-2.1.6.tar.gz -tar xf openmpi-2.1.6.tar.gz -cd openmpi-2.1.6/ -./configure CC=clang CXX=clang++ --prefix=/usr/local VM2 -./configure CC=gcc CXX=g++ --prefix=/usr/local (gcc g++ version5.1) VM2-2 -#MacOS 10.13.5 -curl -L https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.1.tar.gz --output openmpi-4.0.1.tar.gz -tar xf openmpi-4.0.1.tar.gz -cd openmpi-4.0.1/ -./configure CC=clang CXX=clang++ FC=gfortran-9 F77=gfortran-9 --prefix=/usr/local VM2 -./configure CC=gcc-9 CXX=g++-9 FC=gfortran-9 F77=gfortran-9 --prefix=/usr/local VM2-2 -make -j4 all -make check -sudo make install -#Ubuntu 16.04 - Ubuntu 18.04 -openmpi 4.0.2 installed -# Ubuntu 19.10 -openmpi 4.0.3 installed - -``` - -# MPICH - -``` -curl -L http://www.mpich.org/static/downloads/3.3.2/mpich-3.3.2.tar.gz --output mpich-3.3.2.tar.gz -tar xf mpich-3.3.2.tar.gz -cd mpich-3.3.2/ -#MacOS 10.10.5 -./configure CC=clang CXX=clang++ --prefix=/usr/local/mpich3 VM2 -./configure CC=gcc CXX=g++ --prefix=/usr/local/mpich3 (gcc g++ version5.1) VM2-2 -#MacOS 10.13.5 -./configure CC=clang CXX=clang++ FC=gfortran-9 F77=gfortran-9 --prefix=/usr/local/mpich3 VM2 (update v3.3.2) -./configure CC=gcc-9 CXX=g++-9 FC=gfortran-9 F77=gfortran-9 --prefix=/usr/local/mpich3 VM2-2 -make -j4 all -make check -sudo make install - -#Ubuntu 16.04 - Ubuntu 18.04 - Ubuntu 19.10 -wget http://www.mpich.org/static/downloads/3.3.1/mpich-3.3.1.tar.gz -tar xf mpich-3.3.1.tar.gz -cd mpich-3.3.1/ -./configure --prefix=/usr/local/mpich3 -make -j4 -make -j4 install - -``` - -Jenkins projects are [here](https://ci.inria.fr/freefem-dev/) and [here](https://ci.inria.fr/freefem-dev-2/) - -# Job 1 - -without mpi (for macOS, compiled with gcc) -runs on VM0 - -# Job 2 - -without-mpi (for macOS, compiled with clang) -runs on VM1 - -# Job 3 sequential version of FreeFEM - -with 3dparty, without-mpi (for macOS, compiled with clang) -runs on VM2 - -# Job 4_openmpi Full version of FreeFEM compiled in release mode - -with 3dparty, compilation in release mode (for macOS, compiled with gcc), uses a PETSc installed (curent version 3.12.4) -runs on VM2-2 - -# Job 4_mpich Full version of FreeFEM compiled in release mode - -with 3dparty, compilation in release mode (for macOS, compiled with gcc), uses a PETSc installed (curent version 3.12.42) -runs on VM2-2 - -# Job 5_openmpi Full version of FreeFEM compiled in debug mode - -with mpi with 3dparty,, compilation in debug mode (for macOS, compiled with clang) download and install PETSc at each build -runs on VM2 - -# Job 5_mpich Full version of FreeFEM compiled in debug mode - -with mpi with 3dparty,, compilation in debug mode (for macOS, compiled with clang) download and install PETSc at each build -runs on VM2 diff --git a/etc/jenkins/blob/build.sh b/etc/jenkins/blob/build.sh deleted file mode 100755 index 79ce1e6f3..000000000 --- a/etc/jenkins/blob/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -make -j4 diff --git a/etc/jenkins/blob/build_PETSc.sh b/etc/jenkins/blob/build_PETSc.sh deleted file mode 100755 index 30c8f7664..000000000 --- a/etc/jenkins/blob/build_PETSc.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -cd 3rdparty/ff-petsc \ - && make petsc-slepc \ - && cd - \ - && ./reconfigure diff --git a/etc/jenkins/blob/check.sh b/etc/jenkins/blob/check.sh deleted file mode 100755 index e093d367f..000000000 --- a/etc/jenkins/blob/check.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -make check diff --git a/etc/jenkins/blob/install.sh b/etc/jenkins/blob/install.sh deleted file mode 100755 index 6bd9e6d36..000000000 --- a/etc/jenkins/blob/install.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -make install diff --git a/etc/jenkins/blob/uninstall.sh b/etc/jenkins/blob/uninstall.sh deleted file mode 100755 index 5b0e6effb..000000000 --- a/etc/jenkins/blob/uninstall.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -rm -rf /builds/workspace/freefem diff --git a/etc/jenkins/catchErrorLog.sh b/etc/jenkins/catchErrorLog.sh deleted file mode 100644 index 99c87306b..000000000 --- a/etc/jenkins/catchErrorLog.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -## Jenkins variables -workspace="$WORKSPACE" -job="$JOB_NAME" - -## Tests directories -logDirectory="${workspace}/log/${job}" -baseDirectory="examples" -declare -a directories -directories=("3d" "3dSurf" "bamg" "bug" "eigen" "examples" "ffddm" "hpddm" "misc" "mpi" "other" "plugin" "tutorial") - -echo "Log will be put in ${logDirectory}" - -## Create tree and copy log -for directory in "${directories[@]}" -do - ## Create directory - mkdir -p "${logDirectory}/${directory}" - ## Remove files, if any - rm -f "${logDirectory}/${directory}/*" - ## Copy log - cp -f "${baseDirectory}/${directory}/*.err" "${logDirectory}/${directory}/" 2>/dev/null -done - -## Exit with 0 if the last cp failed (just no error log) -exit 0 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-1.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-1.sh deleted file mode 100644 index a64e045a8..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-1.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=gcc -export CXX=g++ -export FC=gfortran -export F77=gfortran diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-2.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-2.sh deleted file mode 100644 index df0bf717a..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-2.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran -export F77=gfortran diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-3.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-3.sh deleted file mode 100644 index df0bf717a..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-3.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran -export F77=gfortran diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_mpich.sh deleted file mode 100644 index edd4143fe..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc -export CXX=g++ -export FC=gfortran -export F77=gfortran -export MPIRUN=/usr/local/mpich3/bin/mpirun -export MPICXX=/usr/local/mpich3/bin/mpicxx -export MPIFC=/usr/local/mpich3/bin/mpif90 -export MPICC=/usr/local/mpich3/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_openmpi.sh deleted file mode 100644 index 0d472aab0..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-4_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc -export CXX=g++ -export FC=gfortran -export F77=gfortran -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_mpich.sh deleted file mode 100644 index 08b3e9b3d..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran -export F77=gfortran -export MPIRUN=/usr/local/mpich3/bin/mpirun -export MPICXX=/usr/local/mpich3/bin/mpicxx -export MPIFC=/usr/local/mpich3/bin/mpif90 -export MPICC=/usr/local/mpich3/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_openmpi.sh deleted file mode 100644 index abfa417ea..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-14.5.0-5_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran -export F77=gfortran -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-1.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-1.sh deleted file mode 100644 index 54afe721d..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-1.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-2.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-2.sh deleted file mode 100644 index b26fe5c13..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-2.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-3.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-3.sh deleted file mode 100644 index b26fe5c13..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-3.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_mpich.sh deleted file mode 100644 index f8bcb65bc..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/mpich4/bin/mpirun -export MPICXX=/usr/local/mpich4/bin/mpicxx -export MPIFC=/usr/local/mpich4/bin/mpif90 -export MPICC=/usr/local/mpich4/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_openmpi.sh deleted file mode 100644 index db8be5d7a..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.5.0-5_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_mpich.sh deleted file mode 100644 index 8c280c9d9..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/Users/ci/mpich4/bin/mpirun -export MPICXX=/Users/ci/mpich4/bin/mpicxx -export MPIFC=/Users/ci/mpich4/bin/mpif90 -export MPICC=/Users/ci/mpich4/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_openmpi.sh deleted file mode 100644 index d8acb46ba..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-17.7.0-4_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-1.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-1.sh deleted file mode 100644 index 54afe721d..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-1.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-2.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-2.sh deleted file mode 100644 index b26fe5c13..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-2.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-3.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-3.sh deleted file mode 100644 index b26fe5c13..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-3.sh +++ /dev/null @@ -1,4 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_mpich.sh deleted file mode 100644 index 029e903bc..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/mpich3/bin/mpirun -export MPICXX=/usr/local/mpich3/bin/mpicxx -export MPIFC=/usr/local/mpich3/bin/mpif90 -export MPICC=/usr/local/mpich3/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_openmpi.sh deleted file mode 100644 index d8acb46ba..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-4_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=gcc-9 -export CXX=g++-9 -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_mpich.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_mpich.sh deleted file mode 100644 index 79a06fca9..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_mpich.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/mpich3/bin/mpirun -export MPICXX=/usr/local/mpich3/bin/mpicxx -export MPIFC=/usr/local/mpich3/bin/mpif90 -export MPICC=/usr/local/mpich3/bin/mpicc diff --git a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_openmpi.sh b/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_openmpi.sh deleted file mode 100644 index db8be5d7a..000000000 --- a/etc/jenkins/change_compiler/change_compiler-Darwin-18.5.0-5_openmpi.sh +++ /dev/null @@ -1,8 +0,0 @@ -export CC=clang -export CXX=clang++ -export FC=gfortran-9 -export F77=gfortran-9 -export MPIRUN=/usr/local/bin/mpirun -export MPICXX=/usr/local/bin/mpicxx -export MPIFC=/usr/local/bin/mpif90 -export MPICC=/usr/local/bin/mpicc diff --git a/etc/jenkins/deployRelease/README.md b/etc/jenkins/deployRelease/README.md deleted file mode 100644 index d0e77ef1e..000000000 --- a/etc/jenkins/deployRelease/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# Ubuntu - -**Current system:** Ubuntu 20.04 - -**Jenkins dashboard:** https://ci.inria.fr/freefem/job/FreeFEM-sources-deployDEB/ - -**Output:** FreeFEM-X.X.X-amd64-ubuntuY.Y.deb - -Packages: - -``` -sudo apt-get install cpp freeglut3-dev g++ gcc gfortran \ - m4 make patch pkg-config wget python unzip \ - liblapack-dev libhdf5-dev libgsl-dev mpich \ - autoconf automake autotools-dev bison flex gdb git cmake -``` - -# Windows - -**Current system:** Windows 10 - -**Jenkins dashboard:** https://ci.inria.fr/freefem/job/deployEXE/ - -**Output:** FreeFEM-X.X-X-win64.exe - -Windows Install: - -- [MSYS2](https://www.msys2.org/) -- [git](https://git-scm.com/downloads) -- [Microsoft MPI](https://www.microsoft.com/en-us/download/details.aspx?id=100593) -- [Inno setup](https://jrsoftware.org/isdl.php) - -MSYS2 packages: - -``` -pacman -S autoconf automake-wrapper bison bsdcpio make git mingw-w64-x86_64-toolchain mingw-w64-x86_64-freeglut patch python flex pkg-config pkgfile tar unzip mingw-w64-x86_64-cmake mingw-w64-x86_64-msmpi mingw-w64-x86_64-gsl mingw-w64-x86_64-jq -pacman -R mingw-w64-x86_64-python mingw-w64-x86_64-gdb mingw-w64-x86_64-gdb-multiarch - -``` - -# MacOS system - -Not currently build diff --git a/etc/jenkins/deployRelease/createRelease.sh b/etc/jenkins/deployRelease/createRelease.sh deleted file mode 100755 index b6507a221..000000000 --- a/etc/jenkins/deployRelease/createRelease.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -## Parameters -TOKEN=$1 -ORGANIZATION="FreeFem" -REPOSITORY="FreeFem-sources" - -## Release informations -VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1) -RELEASE_TAG_NAME="v$VERSION" -RELEASE_TARGET_COMMITISH="master" -RELEASE_NAME="FreeFEM v$VERSION" -RELEASE_BODY="**Warning**: this is an automatic release. If you encounter some trouble with packages, post a message in the [forum](https://community.freefem.org)" -RELEASE_DRAFT="false" -RELEASE_PRERELEASE="false" - -echo "Release name: $RELEASE_NAME" - -## Check if release exists -RESPONSE=$(curl "https://api.github.com/repos/$ORGANIZATION/$REPOSITORY/releases/tags/$RELEASE_TAG_NAME") -RESPONSE_URL=$(printf "%s" "$RESPONSE" | jq -r '.url') - -## Create release -if [ "$RESPONSE_URL" = "null" ] -then - RELEASE_PARAMETERS=$(printf '{"tag_name": "%s", "target_commitish": "%s", "name": "%s", "body": "%s.", "draft": %s, "prerelease": %s}' "$RELEASE_TAG_NAME" "$RELEASE_TARGET_COMMITISH" "$RELEASE_NAME" "$RELEASE_BODY" "$RELEASE_DRAFT" "$RELEASE_PRERELEASE") - RELEASE=$(curl -H "Authorization: token $TOKEN" --data "$RELEASE_PARAMETERS" "https://api.github.com/repos/$ORGANIZATION/$REPOSITORY/releases") - echo "Github response:" - echo "$RELEASE" -else - echo "Release already exists" - exit 1 -fi diff --git a/etc/jenkins/deployRelease/deployAppImage.sh b/etc/jenkins/deployRelease/deployAppImage.sh deleted file mode 100755 index ecfba274a..000000000 --- a/etc/jenkins/deployRelease/deployAppImage.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -set -x -set -u -set -e - -## Parameters -TOKEN=$1 -ORGANIZATION="FreeFem" -REPOSITORY="FreeFem-sources" -VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1) -RELEASE_TAG_NAME="v$VERSION" -APPIMAGE_NAME="FreeFEM-x86_64-${RELEASE_TAG_NAME}.AppImage" - -## AppImage build -CONTAINER_NAME="freefem-appimage-builder" -SOURCES_MOUNT_POINT="/home/ubuntu/FreeFem-sources" - -chmod +x etc/AppImage/rebuild-and-run-appimage-builder.sh && ./etc/AppImage/rebuild-and-run-appimage-builder.sh -docker exec $CONTAINER_NAME $SOURCES_MOUNT_POINT/etc/AppImage/build-appimage.sh -# AppImage is created: FreeFEM-x86_64.AppImage - -## Change name -mv FreeFEM-x86_64.AppImage $APPIMAGE_NAME - -## Deploy in GitHub release -RELEASE=`curl 'https://api.github.com/repos/'$ORGANIZATION'/'$REPOSITORY'/releases/tags/'$RELEASE_TAG_NAME` -UPLOAD_URL=`printf "%s" "$RELEASE" | jq -r '.upload_url'` - -if [ -x $UPLOAD_URL ] -then - echo "Release does not exists" - exit 1 -else - RESPONSE=`curl --data-binary "@$APPIMAGE_NAME" -H "Authorization: token $TOKEN" -H "Content-Type: application/octet-stream" "$UPLOAD_URL=$APPIMAGE_NAME"` -fi \ No newline at end of file diff --git a/etc/jenkins/deployRelease/deployDEB.sh b/etc/jenkins/deployRelease/deployDEB.sh deleted file mode 100755 index 109894eee..000000000 --- a/etc/jenkins/deployRelease/deployDEB.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env bash - -set -x -set -u -set -e - -## Parameters -TOKEN=$1 -ORGANIZATION="FreeFem" -REPOSITORY="FreeFem-sources" -VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1) -RELEASE_TAG_NAME="v$VERSION" -OSRELEASE=$(lsb_release -r|awk '{print $2}') - -BUILD_DIR="/usr/local" - -DEB_NAME="freefem-${VERSION}-amd64-ubuntu${OSRELEASE}" -GH_DEB_NAME="FreeFEM-${VERSION}-amd64-ubuntu${OSRELEASE}.deb" - -## DEB build -autoreconf -i -./configure --enable-download --enable-optim --enable-generic --prefix="$BUILD_DIR" -./3rdparty/getall -a -o PETSc,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -cd 3rdparty/ff-petsc && make petsc-slepc && cd - -./reconfigure -make -j4 -make -j install - -## Create FreeFEM Debian package -mkdir "$DEB_NAME" -mkdir "$DEB_NAME/DEBIAN" -touch "$DEB_NAME/DEBIAN/control" -{ - echo "Package: freefem"; - echo "Version: $VERSION"; - echo "Section: custom"; - echo "Architecture: amd64"; - echo "Depends: libc6 (>= 2.31), g++ (>= 9.3), gcc (>= 9.3), gfortran (>= 9.3), libgsl-dev (>=2.5), libhdf5-dev (>=1.10.4), liblapack-dev (>= 3.9), libopenmpi-dev (>=4.0.3) ,freeglut3-dev (>= 2.8.1)"; - echo "Maintainer: FreeFEM, Frédéric Hecht "; - echo "Description: FreeFEM, Finite Element Language software"; - echo "Homepage: https://freefem.org"; -} >> "$DEB_NAME/DEBIAN/control" -mkdir -p "$DEB_NAME/usr/local/share/FreeFEM" -mkdir -p "$DEB_NAME/usr/local/bin" -mkdir -p "$DEB_NAME/usr/local/lib/ff++" -mkdir -p "$DEB_NAME/usr/share/doc/freefem" - -cp -r "$BUILD_DIR/lib/ff++/$VERSION" "$DEB_NAME/usr/local/lib/ff++/$VERSION" -cp -r "$BUILD_DIR/ff-petsc/" "$DEB_NAME/usr/local/ff-petsc" -cp -r "$BUILD_DIR/share/FreeFEM/$VERSION" "$DEB_NAME/usr/local/share/FreeFEM/$VERSION" -cp -r "$BUILD_DIR/bin/FreeFem++" "$DEB_NAME/usr/local/bin/FreeFem++" -cp -r "$BUILD_DIR/bin/FreeFem++-mpi" "$DEB_NAME/usr/local/bin/FreeFem++-mpi" -cp -r "$BUILD_DIR/bin/FreeFem++-nw" "$DEB_NAME/usr/local/bin/FreeFem++-nw" -cp -r "$BUILD_DIR/bin/bamg" "$DEB_NAME/usr/local/bin/bamg" -cp -r "$BUILD_DIR/bin/cvmsh2" "$DEB_NAME/usr/local/bin/cvmsh2" -cp -r "$BUILD_DIR/bin/ff-c++" "$DEB_NAME/usr/local/bin/ff-c++" -cp -r "$BUILD_DIR/bin/ff-get-dep" "$DEB_NAME/usr/local/bin/ff-get-dep" -cp -r "$BUILD_DIR/bin/ff-mpirun" "$DEB_NAME/usr/local/bin/ff-mpirun" -cp -r "$BUILD_DIR/bin/ff-pkg-download" "$DEB_NAME/usr/local/bin/ff-pkg-download" -cp -r "$BUILD_DIR/bin/ffglut" "$DEB_NAME/usr/local/bin/ffglut" -cp -r "$BUILD_DIR/bin/ffmaster" "$DEB_NAME/usr/local/bin/ffmaster" -cp -r "$BUILD_DIR/bin/ffmedit" "$DEB_NAME/usr/local/bin/ffmedit" -cp AUTHORS "$DEB_NAME/usr/share/doc/freefem/AUTHOR" -cp README.md "$DEB_NAME/usr/share/doc/freefem/README.md" - -dpkg-deb --build "$DEB_NAME/" -mv "$DEB_NAME.deb" "$GH_DEB_NAME" - -## Deploy in GitHub release -RELEASE=$(curl "https://api.github.com/repos/$ORGANIZATION/$REPOSITORY/releases/tags/$RELEASE_TAG_NAME") -UPLOAD_URL=$(printf "%s" "$RELEASE" | jq -r '.upload_url') - -if [ -x "$UPLOAD_URL" ] -then - echo "Release does not exists" - exit 1 -else - RESPONSE=$(curl --data-binary "@$GH_DEB_NAME" -H "Authorization: token $TOKEN" -H "Content-Type: application/octet-stream" "$UPLOAD_URL=$GH_DEB_NAME") - echo "Github response:" - echo "$RESPONSE" -fi - -# clean the VM -rm -rf "$BUILD_DIR/ff-petsc" -rm -rf "$DEB_NAME" -rm "$GH_DEB_NAME" - -./bin/uninstall-ff++ \ No newline at end of file diff --git a/etc/jenkins/deployRelease/deployEXE.sh b/etc/jenkins/deployRelease/deployEXE.sh deleted file mode 100755 index a3604646f..000000000 --- a/etc/jenkins/deployRelease/deployEXE.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -set -x -set -u -set -e - -## Parameters -TOKEN=$1 -ORGANIZATION="FreeFem" -REPOSITORY="FreeFem-sources" -VERSION=$(grep AC_INIT configure.ac | cut -d"," -f2 | cut -d"[" -f2 | cut -d"]" -f1) -RELEASE_TAG_NAME="v$VERSION" -EXE_NAME="FreeFem++-${VERSION}-win64.exe" -GH_EXE_NAME="FreeFEM-${VERSION}-win64.exe" - -## EXE build -autoreconf -i -./configure --enable-download --enable-optim --enable-generic -./3rdparty/getall -a -o PETSc,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -cd 3rdparty/ff-petsc && make petsc-slepc && cd - -./reconfigure -make -j4 - -cp AUTHORS readme/AUTHORS -make win32 - -## Deploy in GitHub release -RELEASE=$(curl "https://api.github.com/repos/$ORGANIZATION/$REPOSITORY/releases/tags/$RELEASE_TAG_NAME") -UPLOAD_URL=$(printf "%s" "$RELEASE" | jq -r '.upload_url') - -if [ -x "$UPLOAD_URL" ] -then - echo "Release does not exists" - exit 1 -else - mv "Output/$EXE_NAME" "$GH_EXE_NAME" - RESPONSE=$(curl --data-binary "@$GH_EXE_NAME" -H "Authorization: token $TOKEN" -H "Content-Type: application/octet-stream" "$UPLOAD_URL=$GH_EXE_NAME") - echo "Github response:" - echo "$RESPONSE" -fi diff --git a/etc/jenkins/deployRelease/deployPKG.sh b/etc/jenkins/deployRelease/deployPKG.sh deleted file mode 100755 index 325e4322a..000000000 --- a/etc/jenkins/deployRelease/deployPKG.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -set -x -set -u -set -e diff --git a/etc/jenkins/jobCMake.sh b/etc/jenkins/jobCMake.sh deleted file mode 100644 index b267d8f16..000000000 --- a/etc/jenkins/jobCMake.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -echo "Job CMake" - -export FF_ROOT=$(pwd) -export FF_INCLUDEPATH=$FF_ROOT/idp - -mkdir -p build_cmake \ - && cd build_cmake \ - && cmake -D CMAKE_CXX_COMPILER=g++ -D CMAKE_C_COMPILER=gcc -D CMAKE_INSTALL_PREFIX=/builds/workspace/freefem .. \ - && make -j 8 VERBOSE=1 \ - && make install \ - && cd $FF_ROOT/build_cmake/examples/3d \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/eigen \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/mpi \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/other \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/tutorial \ - && make test CTEST_OUTPUT_ON_FAILURE=On diff --git a/etc/jenkins/jobCMakeWindows.sh b/etc/jenkins/jobCMakeWindows.sh deleted file mode 100644 index 52e68ff04..000000000 --- a/etc/jenkins/jobCMakeWindows.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job CMake" - -export FF_ROOT=$(pwd) -export FF_INCLUDEPATH=$FF_ROOT/idp - -mkdir -p build_cmake \ - && cd build_cmake \ - && cmake -D CMAKE_CXX_COMPILER=g++ -D CMAKE_C_COMPILER=gcc -D CMAKE_INSTALL_PREFIX=/builds/workspace/freefem .. \ - && make -j 8 VERBOSE=1 \ - && make install \ - && cd $FF_ROOT/build_cmake/examples/3d \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/eigen \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/mpi \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/other \ - && make test CTEST_OUTPUT_ON_FAILURE=On \ - && cd $FF_ROOT/build_cmake/examples/tutorial \ - && make test CTEST_OUTPUT_ON_FAILURE=On diff --git a/etc/jenkins/job_Unix/check_ffpetsc/check_ffpetscVersion.sh b/etc/jenkins/job_Unix/check_ffpetsc/check_ffpetscVersion.sh deleted file mode 100755 index 8fcadb01e..000000000 --- a/etc/jenkins/job_Unix/check_ffpetsc/check_ffpetscVersion.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -./etc/jenkins/job_Unix/check_ffpetsc/job_ffpetsc.sh - -if [ $? -eq 0 ] -then - echo " ************* upgrading mpich ffpetsc success *************" -else - echo " ************* upgrading mpich ffpetsc FAIL *************" - exit 1 -fi diff --git a/etc/jenkins/job_Unix/check_ffpetsc/job_ffpetsc.sh b/etc/jenkins/job_Unix/check_ffpetsc/job_ffpetsc.sh deleted file mode 100755 index 54d726cc3..000000000 --- a/etc/jenkins/job_Unix/check_ffpetsc/job_ffpetsc.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -releaseVersionffpetsc=$(grep "VERSION=" 3rdparty/ff-petsc/Makefile | cut -c9-15) -echo "release Version ffpetsc" $releaseVersionffpetsc - -# compilation with openmpi -if [ "$(uname)" == "Darwin" ]; then - # in case where the OS type is Darwin - MAJOR=$(grep "#define PETSC_VERSION_MAJOR" /Users/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - MINOR=$(grep "#define PETSC_VERSION_MINOR" /Users/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-36 ) - SUBMINOR=$(grep "#define PETSC_VERSION_SUBMINOR" /Users/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - installedVersionffpetscO=$MAJOR.$MINOR.$SUBMINOR - ffpetscDirectory=/Users/Shared/openmpi/ -elif [ "$(uname)" == "Linux" ]; then - # in case where the OS type is Linux - MAJOR=$(grep "#define PETSC_VERSION_MAJOR" /builds/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - MINOR=$(grep "#define PETSC_VERSION_MINOR" /builds/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-36 ) - SUBMINOR=$(grep "#define PETSC_VERSION_SUBMINOR" /builds/Shared/openmpi/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - installedVersionffpetscO=$MAJOR.$MINOR.$SUBMINOR - ffpetscDirectory=/builds/Shared/openmpi/ -fi -echo "installed Version ffpetsc openmpi" $installedVersionffpetscO - -# check the version -if [ "$releaseVersionffpetsc" == "$installedVersionffpetscO" ]; then - echo "installed release version PETSc is up to date" -else - # change default compiler load in update_ffpetsc_*.sh - echo "installed release version PETSc will be upgrated" - rm -rf $ffpetscDirectory - ./etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_openmpi.sh \ - && echo " ************* upgrading openmpi ffpetsc success *************" - cd 3rdparty/ff-petsc/ && rm -rf petsc-$releaseVersionffpetsc && cd ../.. && make clean -fi - -#define PETSC_VERSION_SUBMINOR 4 -# compilation with mpich -if [ "$(uname)" == "Darwin" ]; then - # in case where the OS type is Darwin - MAJOR=$(grep "#define PETSC_VERSION_MAJOR" /Users/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - MINOR=$(grep "#define PETSC_VERSION_MINOR" /Users/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-36 ) - SUBMINOR=$(grep "#define PETSC_VERSION_SUBMINOR" /Users/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - installedVersionffpetscM=$MAJOR.$MINOR.$SUBMINOR - ffpetscDirectory=/Users/Shared/mpich/ -elif [ "$(uname)" == "Linux" ]; then - # in case where the OS type is Linux - MAJOR=$(grep "#define PETSC_VERSION_MAJOR" /builds/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - MINOR=$(grep "#define PETSC_VERSION_MINOR" /builds/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-36 ) - SUBMINOR=$(grep "#define PETSC_VERSION_SUBMINOR" /builds/Shared/mpich/ff-petsc/c/include/petscversion.h | cut -c34-35 ) - installedVersionffpetscM=$MAJOR.$MINOR.$SUBMINOR - ffpetscDirectory=/builds/Shared/mpich/ -fi -echo "installed Version ffpetsc mpich" $installedVersionffpetscM - -# check the version -if [ "$releaseVersionffpetsc" == "$installedVersionffpetscM" ]; then - echo "installed release version PETSc is up to date" -else - # change default compiler load in update_ffpetsc_*.sh - echo "installed release version PETSc will be upgrated" - rm -rf $ffpetscDirectory - ./etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_mpich.sh -fi diff --git a/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_mpich.sh b/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_mpich.sh deleted file mode 100755 index e861ceabf..000000000 --- a/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_mpich.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -## This script allows to install PETSc on vm2-2 -## See ./README.md - -echo "update ffPETSc(mpich)" -set -e - -# change default compiler -if [ "$(uname)" == "Darwin" ]; then - # in case where the OS type is Darwin - PETSC_INSTALLDIR='/Users/Shared/mpich' - change_compiler=etc/jenkins/change_compiler/change_compiler-`uname -s`-`uname -r`-4_mpich.sh -elif [ "$(uname)" == "Linux" ]; then - # in case where the OS type is Linux - PETSC_INSTALLDIR='/builds/Shared/mpich' - change_compiler=etc/jenkins/change_compiler/change_compiler-`uname -s`-4_mpich.sh -fi -echo try to source file "$change_compiler" -test -f "$change_compiler" && echo source file "$change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i \ - && ./configure --enable-download --prefix=$PETSC_INSTALLDIR \ - && ./3rdparty/getall -a -o PETSc \ - && ./etc/jenkins/blob/build_PETSc.sh - -if [ $? -eq 0 ] -then - echo "ffpetsc update complete" -else - echo "ffpetsc update fail" - rm -rf $PETSC_INSTALLDIR/ff-petsc - exit 1 -fi diff --git a/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_openmpi.sh b/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_openmpi.sh deleted file mode 100755 index f715fdbaa..000000000 --- a/etc/jenkins/job_Unix/check_ffpetsc/update_ffpetsc_openmpi.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -## This script allows to install PETSc on vm2-2 -## See ./README.md - -echo "update ffPETSc(openmpi)" -set -e - -# change default compiler -if [ "$(uname)" == "Darwin" ]; then - # in case where the OS type is Darwin - PETSC_INSTALLDIR='/Users/Shared/openmpi' - change_compiler=etc/jenkins/change_compiler/change_compiler-`uname -s`-`uname -r`-4_openmpi.sh -elif [ "$(uname)" == "Linux" ]; then - # in case where the OS type is Linux - PETSC_INSTALLDIR='/builds/Shared/openmpi' - change_compiler=etc/jenkins/change_compiler/change_compiler-`uname -s`-4_openmpi.sh -fi -echo try to source file "$change_compiler" -test -f "$change_compiler" && echo source file "$change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i \ - && ./configure --enable-download --prefix=$PETSC_INSTALLDIR \ - && ./3rdparty/getall -a -o PETSc \ - && ./etc/jenkins/blob/build_PETSc.sh - -if [ $? -eq 0 ] -then - echo "ffpetsc update complete" -else - echo "ffpetsc update fail" - rm -rf $PETSC_INSTALLDIR/ff-petsc - exit 1 -fi diff --git a/etc/jenkins/job_Unix/job1.sh b/etc/jenkins/job_Unix/job1.sh deleted file mode 100755 index 271b8ea4f..000000000 --- a/etc/jenkins/job_Unix/job1.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 1" - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - export CC=gcc - export CXX=g++ - export FC=gfortran - export F77=gfortran -fi - -# configuration & build -tar xvf AutoGeneratedFile.tar.gz -./configure --without-mpi --prefix="$WORKSPACE/install" -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job2.sh b/etc/jenkins/job_Unix/job2.sh deleted file mode 100755 index 890946f74..000000000 --- a/etc/jenkins/job_Unix/job2.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 2" - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - export CC=clang - export CXX=clang++ - export FC=gfortran - export F77=gfortran -fi - -# configuration & build -tar xvf AutoGeneratedFile.tar.gz -./configure --without-mpi --prefix="$WORKSPACE/install" -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job3.sh b/etc/jenkins/job_Unix/job3.sh deleted file mode 100755 index 24e7772f6..000000000 --- a/etc/jenkins/job_Unix/job3.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 3" - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - export CC=clang - export CXX=clang++ - export FC=gfortran - export F77=gfortran -fi - -# configuration & build -autoreconf -i -./configure --enable-download --without-mpi --prefix="$WORKSPACE/install" -./3rdparty/getall -a -o ARPACK,METIS,ParMETIS,ScaLAPACK,Scotch,SuiteSparse,SuperLU,mmg,parmmg,hpddm,bemtool,Boost,libpthread-google,TetGen,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS,htool -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" -exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then -echo "Uninstall process complete" -else -echo "Uninstall process failed" -exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job4_mpich.sh b/etc/jenkins/job_Unix/job4_mpich.sh deleted file mode 100755 index 78269dbd1..000000000 --- a/etc/jenkins/job_Unix/job4_mpich.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 4 (mpich)" - -casejob=4_mpich - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - # MacOS - PETSC_DIR='/Users/Shared/mpich/ff-petsc' - change_compiler=etc/jenkins/change_compiler/change_compiler-$(uname -s)-$(uname -r)-$casejob.sh -elif [ "$(uname)" = "Linux" ] -then - # Linux - PETSC_DIR='/media/builds/shared/mpich/ff-petsc' - - export MPIRUN=/usr/bin/mpirun.mpich - export MPICXX=/usr/bin/mpicxx.mpich - export MPIFC=/usr/bin/mpif90.mpich - export MPICC=/usr/bin/mpicc.mpich -fi - -petscVersion=$(grep "VERSION_GIT" "$PETSC_DIR/c/include/petscversion.h" | cut -c36-42 | cut -f1 -d "\"" ) -echo "Installed PETSc version: $petscVersion" -echo "Try to source file $change_compiler" -test -f "$change_compiler" && echo "Source file $change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i -./configure --enable-download --prefix="$WORKSPACE/install" \ - --with-petsc=$PETSC_DIR/r/lib \ - --with-petsc_complex=$PETSC_DIR/c/lib -./3rdparty/getall -a -o Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job4_openmpi.sh b/etc/jenkins/job_Unix/job4_openmpi.sh deleted file mode 100755 index 89f26fe1b..000000000 --- a/etc/jenkins/job_Unix/job4_openmpi.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 4 (openmpi)" - -casejob=4_openmpi - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - # MacOS - PETSC_DIR='/Users/Shared/openmpi/ff-petsc' - change_compiler=etc/jenkins/change_compiler/change_compiler-$(uname -s)-$(uname -r)-$casejob.sh -elif [ "$(uname)" = "Linux" ] -then - # Linux - PETSC_DIR='/media/builds/shared/openmpi/ff-petsc' - - export MPIRUN=/usr/bin/mpirun.openmpi - export MPICXX=/usr/bin/mpicxx.openmpi - export MPIFC=/usr/bin/mpif90.openmpi - export MPICC=/usr/bin/mpicc.openmpi -fi - -petscVersion=$(grep "VERSION_GIT" "$PETSC_DIR/c/include/petscversion.h" | cut -c36-42 | cut -f1 -d "\"" ) -echo "Installed PETSc version: $petscVersion" -echo "Try to source file $change_compiler" -test -f "$change_compiler" && echo "Source file $change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i -./configure --enable-download --prefix="$WORKSPACE/install" \ - --with-petsc=$PETSC_DIR/r/lib \ - --with-petsc_complex=$PETSC_DIR/c/lib -./3rdparty/getall -a -o Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi \ No newline at end of file diff --git a/etc/jenkins/job_Unix/job5_mpich.sh b/etc/jenkins/job_Unix/job5_mpich.sh deleted file mode 100755 index b72f53efb..000000000 --- a/etc/jenkins/job_Unix/job5_mpich.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 5 (mpich)" - -casejob=5_mpich - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - # MacOS - change_compiler=etc/jenkins/change_compiler/change_compiler-$(uname -s)-$(uname -r)-$casejob.sh -elif [ "$(uname)" = "Linux" ] -then - # Linux - export MPIRUN=/usr/bin/mpirun.mpich - export MPICXX=/usr/bin/mpicxx.mpich - export MPIFC=/usr/bin/mpif90.mpich - export MPICC=/usr/bin/mpicc.mpich -fi - -echo "Try to source file $change_compiler" -test -f "$change_compiler" && echo "Source file $change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i -./configure --enable-download --enable-debug --prefix="$WORKSPACE/install" -./3rdparty/getall -a -o PETSc,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -./etc/jenkins/blob/build_PETSc.sh -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job5_openmpi.sh b/etc/jenkins/job_Unix/job5_openmpi.sh deleted file mode 100755 index b53bb9714..000000000 --- a/etc/jenkins/job_Unix/job5_openmpi.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env bash - -echo "Job 5 (openmpi)" - -casejob=5_openmpi - -# change default compiler -if [ "$(uname)" = "Darwin" ] -then - # MacOS - change_compiler=etc/jenkins/change_compiler/change_compiler-$(uname -s)-$(uname -r)-$casejob.sh -elif [ "$(uname)" == "Linux" ] -then - # Linux - export MPIRUN=/usr/bin/mpirun.openmpi - export MPICXX=/usr/bin/mpicxx.openmpi - export MPIFC=/usr/bin/mpif90.openmpi - export MPICC=/usr/bin/mpicc.openmpi -fi - -echo "Try to source file $change_compiler" -test -f "$change_compiler" && echo "Source file $change_compiler" -test -f "$change_compiler" && cat "$change_compiler" -test -f "$change_compiler" && source "$change_compiler" - -# configuration & build -autoreconf -i -./configure --enable-download --enable-debug --prefix="$WORKSPACE/install" -./3rdparty/getall -a -o PETSc,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -./etc/jenkins/blob/build_PETSc.sh -./etc/jenkins/blob/build.sh - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -./etc/jenkins/blob/check.sh - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -./etc/jenkins/blob/install.sh - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -./etc/jenkins/blob/uninstall.sh - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Unix/job_petsc.sh b/etc/jenkins/job_Unix/job_petsc.sh deleted file mode 100755 index 37846661e..000000000 --- a/etc/jenkins/job_Unix/job_petsc.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash - -echo "Job PETsc" - -freefemPETScVersion=$(grep "VERSION=" 3rdparty/ff-petsc/Makefile | cut -c9-15) - -################# -# OpenMPI version -if [ "$(uname)" == "Darwin" ] -then - # Macos - openmpiPETScDir='' - ## TODO -elif [ "$(uname)" == "Linux" ] -then - # Linux - openmpiPETScDir='/media/builds/shared/openmpi' -fi - -major=$(grep "#define PETSC_VERSION_MAJOR" "$openmpiPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -minor=$(grep "#define PETSC_VERSION_MINOR" "$openmpiPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-36 ) -subminor=$(grep "#define PETSC_VERSION_SUBMINOR" "$openmpiPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -openmpiPETScVersion=$major.$minor.$subminor - -echo "Installer OpenMPI PETSc version: $openmpiPETScVersion" - -# Check version -if [ "$freefemPETScVersion" = "$openmpiPETScVersion" ] -then - echo "OpenMPI PETSc is up-to-date" - echo "Nothing to do" -else - echo "OpenMPI PETSc is outdated" - echo "Update" - rm -rf $openmpiPETScDir/ff-petsc - ./etc/jenkins/job_Unix/petsc/install-petsc-openmpi.sh -fi - -############### -# MPICH version -if [ "$(uname)" == "Darwin" ] -then - # Macos - mpichPETScDir='' - ## TODO -elif [ "$(uname)" == "Linux" ] -then - # Linux - mpichPETScDir='/media/builds/shared/mpich' -fi - -major=$(grep "#define PETSC_VERSION_MAJOR" "$mpichPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -minor=$(grep "#define PETSC_VERSION_MINOR" "$mpichPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-36 ) -subminor=$(grep "#define PETSC_VERSION_SUBMINOR" "$mpichPETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -mpichPETScVersion=$major.$minor.$subminor - -echo "Installer MPICH PETSc version: $mpichPETScVersion" - -# Check version -if [ "$freefemPETScVersion" = "$mpichPETScVersion" ] -then - echo "MPICH PETSc is up-to-date" - echo "Nothing to do" -else - echo "MPICH PETSc is outdated" - echo "Update" - rm -rf $mpichPETScDir/ff-petsc - ./etc/jenkins/job_Unix/petsc/install-petsc-mpich.sh -fi \ No newline at end of file diff --git a/etc/jenkins/job_Unix/petsc/install-petsc-mpich.sh b/etc/jenkins/job_Unix/petsc/install-petsc-mpich.sh deleted file mode 100755 index 510c63834..000000000 --- a/etc/jenkins/job_Unix/petsc/install-petsc-mpich.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -if [ "$(uname)" = "Darwin" ] -then - # TODO - : -elif [ "$(uname)" = "Linux" ] -then - PETSC_INSTALL_DIR='/media/builds/shared/mpich' - - export MPIRUN=/usr/bin/mpirun.mpich - export MPICXX=/usr/bin/mpicxx.mpich - export MPIFC=/usr/bin/mpif90.mpich - export MPICC=/usr/bin/mpicc.mpich -fi - -PETScVersion=$(grep "VERSION=" 3rdparty/ff-petsc/Makefile | cut -c9-15) - -# configuration & build -autoreconf -i -./configure --enable-download --prefix="$PETSC_INSTALL_DIR" -./3rdparty/getall -a -o PETSc -./etc/jenkins/blob/build_PETSc.sh -rm -rf "3rdparty/ff-petsc/petsc-$PETScVersion" - -if [ $? -eq 0 ] -then - echo "PETSc update complete" -else - echo "PETSc update failed" - rm -rf "$PETSC_INSTALL_DIR/ff-petsc" -fi diff --git a/etc/jenkins/job_Unix/petsc/install-petsc-openmpi.sh b/etc/jenkins/job_Unix/petsc/install-petsc-openmpi.sh deleted file mode 100755 index 3bbe3cc35..000000000 --- a/etc/jenkins/job_Unix/petsc/install-petsc-openmpi.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -if [ "$(uname)" = "Darwin" ] -then - # TODO - : -elif [ "$(uname)" = "Linux" ] -then - PETSC_INSTALL_DIR='/media/builds/shared/openmpi' - - export MPIRUN=/usr/bin/mpirun.openmpi - export MPICXX=/usr/bin/mpicxx.openmpi - export MPIFC=/usr/bin/mpif90.openmpi - export MPICC=/usr/bin/mpicc.openmpi -fi - -PETScVersion=$(grep "VERSION=" 3rdparty/ff-petsc/Makefile | cut -c9-15) - -# configuration & build -autoreconf -i -./configure --enable-download --prefix="$PETSC_INSTALL_DIR" -./3rdparty/getall -a -o PETSc -./etc/jenkins/blob/build_PETSc.sh -rm -rf "3rdparty/ff-petsc/petsc-$PETScVersion" - -if [ $? -eq 0 ] -then - echo "PETSc update complete" -else - echo "PETSc update failed" - rm -rf "$PETSC_INSTALL_DIR/ff-petsc" -fi diff --git a/etc/jenkins/job_Windows/job1.sh b/etc/jenkins/job_Windows/job1.sh deleted file mode 100755 index 5102a4155..000000000 --- a/etc/jenkins/job_Windows/job1.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job 1 Windows" - -WORKSPACEunix=$(echo "/$WORKSPACE" | sed -e 's/\\/\//g' -e 's/://') - -# configuration & build -tar xf AutoGeneratedFile.tar.gz -./configure --enable-generic --enable-optim --without-mpi --enable-maintainer-mode \ - CXXFLAGS=-mtune=generic CFLAGS=-mtune=generic FFLAGS=-mtune=generic \ - --prefix="$WORKSPACEunix/install" -make -j4 - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -make check - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -make install - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -make uninstall - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Windows/job3.sh b/etc/jenkins/job_Windows/job3.sh deleted file mode 100755 index cb789e841..000000000 --- a/etc/jenkins/job_Windows/job3.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job 3" - -WORKSPACEunix=$(echo "/$WORKSPACE" | sed -e 's/\\/\//g' -e 's/://') - -# configuration & build -autoreconf -i -./configure --enable-generic --enable-optim --enable-download --enable-maintainer-mode \ - CXXFLAGS=-mtune=generic CFLAGS=-mtune=generic FFLAGS=-mtune=generic \ - --prefix="$WORKSPACEunix/install" -./3rdparty/getall -a -make -j4 - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -make check - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -make install - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -make uninstall - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Windows/job4.sh b/etc/jenkins/job_Windows/job4.sh deleted file mode 100755 index 22d91c17f..000000000 --- a/etc/jenkins/job_Windows/job4.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job 4" - -WORKSPACEunix=$(echo "/$WORKSPACE" | sed -e 's/\\/\//g' -e 's/://') - -PETSC_DIR='/c/builds/shared/ff-petsc' - -# configuration & build -autoreconf -i -./configure --enable-generic --enable-optim --enable-download --enable-maintainer-mode \ - CXXFLAGS=-mtune=generic CFLAGS=-mtune=generic FFLAGS=-mtune=generic \ - --prefix="$WORKSPACEunix/install" \ - --with-petsc=$PETSC_DIR/real/lib \ - --with-petsc_complex=$PETSC_DIR/complex/lib -./3rdparty/getall -a -make -j4 - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -make check - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -make install - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -make uninstall - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Windows/job5.sh b/etc/jenkins/job_Windows/job5.sh deleted file mode 100755 index e30333fbf..000000000 --- a/etc/jenkins/job_Windows/job5.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job 5" - -WORKSPACEunix=$(echo "/$WORKSPACE" | sed -e 's/\\/\//g' -e 's/://') - -# configuration & build -autoreconf -i -./configure --enable-generic --enable-optim --enable-download --enable-maintainer-mode \ - --prefix="$WORKSPACEunix/install" -./3rdparty/getall -a -o PETSc,Ipopt,NLopt,freeYams,FFTW,Gmm++,MMG3D,mshmet,MUMPS -cd 3rdparty/ff-petsc && make petsc-slepc && cd - -./reconfigure -make -j4 - -if [ $? -eq 0 ] -then - echo "Build process complete" -else - echo "Build process failed" - exit 1 -fi - -# check -make check - -if [ $? -eq 0 ] -then - echo "Check process complete" -else - echo "Check process failed" -fi - -# install -make install - -if [ $? -eq 0 ] -then - echo "Install process complete" -else - echo "Install process failed" - exit 1 -fi - -# uninstall -make uninstall - -if [ $? -eq 0 ] -then - echo "Uninstall process complete" -else - echo "Uninstall process failed" - exit 1 -fi - -# Jenkins tests results analyser -./etc/jenkins/resultForJenkins/resultForJenkins.sh - -if [ $? -eq 0 ] -then - echo "Jenkins process complete" -else - echo "Jenkins process failed" -fi diff --git a/etc/jenkins/job_Windows/job_petsc.sh b/etc/jenkins/job_Windows/job_petsc.sh deleted file mode 100755 index 413310e0b..000000000 --- a/etc/jenkins/job_Windows/job_petsc.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!C:\msys64\usr\bin\bash.exe --login -source shell mingw64 - -echo "Job PETsc" - -freefemPETScVersion=$(grep "VERSION=" 3rdparty/ff-petsc/Makefile | cut -c9-15) - -PETScDir='/c/builds/shared/' - -major=$(grep "#define PETSC_VERSION_MAJOR" "$PETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -minor=$(grep "#define PETSC_VERSION_MINOR" "$PETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-36 ) -subminor=$(grep "#define PETSC_VERSION_SUBMINOR" "$PETScDir/ff-petsc/c/include/petscversion.h" | cut -c34-35 ) -PETScVersion=$major.$minor.$subminor - -# Check version -if [ "$freefemPETScVersion" = "$PETScVersion" ] -then - echo "PETSc is up-to-date" - echo "Nothing to do" -else - echo "PETSc is outdated" - echo "Update" - rm -rf $PETScDir/ff-petsc - - # configuration & build - autoreconf -i - ./configure --enable-generic --enable-optim --enable-download \ - --prefix="$PETScDir" - ./3rdparty/getall -a -o PETSc - cd 3rdparty/ff-petsc && make petsc-slepc -fi diff --git a/etc/jenkins/resultForJenkins/resultForJenkins.sh b/etc/jenkins/resultForJenkins/resultForJenkins.sh deleted file mode 100755 index fb45e68ef..000000000 --- a/etc/jenkins/resultForJenkins/resultForJenkins.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash - -# script to generate a xml report, make a visualization with the Test Results Analyser plugin - -grep 'global-test-result: XFAIL' examples/*/*trs | sed -e "s/.trs::global-test-result/ /g ; s/\//:/g ; s/ : /:/g " | cut -c10- >> result.txt -grep 'global-test-result: CPU' examples/*/*trs | sed -e "s/.trs::global-test-result/ /g ; s/\//:/g ; s/ : /:/g " | cut -c10- >> result.txt -grep 'global-test-result: SKIP' examples/*/*trs | sed -e "s/.trs::global-test-result/ /g ; s/\//:/g ; s/ : /:/g " | cut -c10- >> result.txt -grep 'global-test-result: PASS' examples/*/*trs | sed -e "s/.trs::global-test-result/ /g ; s/\//:/g ; s/ : /:/g " | cut -c10- >> result.txt - -tests=0 failures=0 errors=0 skipped=0 xerrors=0 cpu=0 -Gtests=0 Gfailures=0 Gerrors=0 Gskipped=0 Gxerrors=0 Gcpu=0 -endclass=0 -folder=toto -first=1 - -echo "" >> report.xml -echo "" >> report.xml -while IFS=: read classname name result -do - -if [ "$classname" != "$folder" ] && [ $first==1 ] ; then -if [ "$folder" != 'toto' ]; then echo " " >> report.xml ; fi -sed -i -e "s/beginTest/ /g" report.xml -echo "beginTest" >> report.xml -tests=0 failures=0 errors=0 skipped=0 xerrors=0 -folder=$classname -first=1 -else -first=0 -fi - -if [ "$result" == "PASS" ]; then - tests=$((tests+1)) - Gtests=$((Gtests+1)) - echo " " >> report.xml -elif [ "$result" == "SKIP" ]; then - skipped=$((skipped+1)) - Gskipped=$((Gskipped+1)) - echo " " >> report.xml - echo " Skipped test, not library/plugin on the VM " >> report.xml - echo " " >> report.xml - elif [ "$result" == "CPU" ]; then - cpu=$((cpu+1)) - Gcpu=$((Gcpu+1)) - echo " " >> report.xml - echo " Cputime limit exceeded " >> report.xml - echo " " >> report.xml -elif [ "$result" == "XFAIL" ]; then - errors=$((errors+1)) - Gerrors=$((Gerrors+1)) - echo " " >> report.xml - echo " This is the end of edp script with the error:" >> report.xml - cat -v examples/$classname/$name.log | tail -35 | sed -e "s/\&/\&;/g" -e "s//\>/g" -e "s/'/\'/g" >> report.xml - echo " " >> report.xml - echo " " >> report.xml -elif [ "$result" == "FAIL" ]; then - failures=$((failures+1)) - Gfailures=$((Gfailures+1)) - echo " " >> report.xml - echo " This is the end of edp script with the error:" >> report.xml - cat -v examples/$classname/$name.log | tail -35 | sed -e "s/\&/\&;/g" -e "s//\>/g" -e "s/'/\'/g" >> report.xml - echo " " >> report.xml - echo " " >> report.xml -fi - -done < result.txt 2>/dev/null - -echo " " >> report.xml -echo "" >> report.xml -sed -i -e "s/beginTest/ /g" report.xml - -sed -i -e "s///g" report.xml - -mv report.xml etc/jenkins/resultForJenkins/report.xml -echo " ****************Make check results************ " -echo " PASS: $Gtests SKIPPED: $Gskipped XFAIL: $Gerrors FAIL:$Gfailures CPU: $Gcpu" - -[ "$Gfailures" -ne 0 ] && exit 1 || [ "$Gerrors" -ne 0 ] && exit 1 - -if [ "$Gfailures" -ne 0 ] || [ "$Gerrors" -ne 0 ]; then -exit 1 -fi