Commit 18c594b9 by Christophe Geuzaine

all automatic build infrastructure moved to gitlab

parent a03ba6ba
Pipeline #515 failed with stage
in 55 minutes 4 seconds
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
variables:
EXTRA_VERSION: "-git"
......@@ -45,10 +50,10 @@ linux64_official:
script:
- mkdir build
- cd build
- /usr/local/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local' -DENABLE_NATIVE_FILE_CHOOSER:bool=FALSE -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/home/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/home/geuzaine/src/slepc-3.7.3 ..
- /usr/local/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DGMSH_HOST=onelab.info -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local' -DENABLE_NATIVE_FILE_CHOOSER:bool=FALSE -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/home/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/home/geuzaine/src/slepc-3.7.3 ..
- make package -j 2
- /usr/local/bin/ctest -D Experimental -j 2 --output-on-failure
- PKG=`ls gmsh-*.tar*`; scp -o StrictHostKeyChecking=no -i /home/gitlab-runner/.ssh/id_rsa ${PKG} geuzaine@gmsh.info:.wwwgmsh/beta/${PKG/\.tar\.gz/\.tgz}
- PKG=`ls gmsh-*.tar*`; scp -o StrictHostKeyChecking=no -i /home/gitlab-runner/.ssh/id_rsa ${PKG} geuzaine@gmsh.info:.wwwgmsh/bin/Linux/${PKG/\.tar\.gz/\.tgz}
tags:
- linux64
- official
......@@ -63,10 +68,10 @@ linux64_official:
script:
- md build
- cd build
- bash -c "/usr/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local;/usr/mingw32/sys-root/mingw' -DCMAKE_C_COMPILER=/usr/bin/mingw32-gcc.exe -DCMAKE_CXX_COMPILER=/usr/bin/mingw32-g++.exe -DCMAKE_Fortran_COMPILER=/usr/bin/mingw32-gfortran.exe -DCMAKE_RC_COMPILER=/usr/bin/mingw32-windres.exe -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/home/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/home/geuzaine/src/slepc-3.7.3 .."
- bash -c "/usr/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DGMSH_HOST=gmsh.info -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local;/usr/mingw32/sys-root/mingw' -DCMAKE_C_COMPILER=/usr/bin/mingw32-gcc.exe -DCMAKE_CXX_COMPILER=/usr/bin/mingw32-g++.exe -DCMAKE_Fortran_COMPILER=/usr/bin/mingw32-gfortran.exe -DCMAKE_RC_COMPILER=/usr/bin/mingw32-windres.exe -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/home/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/home/geuzaine/src/slepc-3.7.3 .."
- bash -c "/usr/bin/make package -j 2"
- bash -c "/usr/bin/ctest -D Experimental -j 2 --output-on-failure"
- bash -c "/usr/bin/scp -o StrictHostKeyChecking=no -i /home/geuzaine/.ssh/id_rsa gmsh-*.zip geuzaine@gmsh.info:.wwwgmsh/beta/"
- bash -c "/usr/bin/scp -o StrictHostKeyChecking=no -i /home/geuzaine/.ssh/id_rsa gmsh-*.zip geuzaine@gmsh.info:.wwwgmsh/bin/Windows/"
windows64_official:
<<: *ref_windows_official
......@@ -91,10 +96,10 @@ macos64_official:
script:
- mkdir build
- cd build
- /usr/local/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local' -DENABLE_CAIRO=0 -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/Users/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/Users/geuzaine/src/slepc-3.7.3 -DBLAS_LAPACK_LIBRARIES=/usr/local/lib/libopenblas.a ..
- /usr/local/bin/cmake -DGMSH_EXTRA_VERSION=$EXTRA_VERSION -DGMSH_HOST=gmsh.info -DCMAKE_PREFIX_PATH='/usr/local/opencascade;/usr/local' -DENABLE_CAIRO=0 -DPETSC_ARCH=complex_mumps_seq -DPETSC_DIR=/Users/geuzaine/src/petsc-3.7.5 -DSLEPC_DIR=/Users/geuzaine/src/slepc-3.7.3 -DBLAS_LAPACK_LIBRARIES=/usr/local/lib/libopenblas.a ..
- make package -j 2
- /usr/local/bin/ctest -D Experimental -j 2 --output-on-failure
- PKG=`ls gmsh-*.dmg`; scp -o StrictHostKeyChecking=no -i /Users/geuzaine/.ssh/id_rsa ${PKG} geuzaine@gmsh.info:.wwwgmsh/beta/${PKG}
- PKG=`ls gmsh-*.dmg`; scp -o StrictHostKeyChecking=no -i /Users/geuzaine/.ssh/id_rsa ${PKG} geuzaine@gmsh.info:.wwwgmsh/bin/MacOSX/${PKG}
tags:
- macos64
- official
......@@ -185,10 +185,12 @@ if(NOT DATE)
endif(NOT DATE)
set(GMSH_DATE "${DATE}")
if(NOT HOSTNAME)
set(HOSTNAME "unknown")
endif(NOT HOSTNAME)
set(GMSH_HOST "${HOSTNAME}")
if(NOT GMSH_HOST)
if(NOT HOSTNAME)
set(HOSTNAME "unknown")
endif(NOT HOSTNAME)
set(GMSH_HOST "${HOSTNAME}")
endif(NOT GMSH_HOST)
if(NOT PACKAGER)
set(PACKAGER "unknown")
......
......@@ -9,8 +9,7 @@ set(CTEST_DROP_SITE_CDASH TRUE)
set(CTEST_DROP_SITE onelab.info)
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=Gmsh")
set(CTEST_TRIGGER_SITE "")
set(SITE ${GMSH_HOST})
set(BUILDNAME "${GMSH_OS}-${GMSH_PACKAGER}")
set(CTEST_BUILD_NAME "${GMSH_OS} (${GMSH_CONFIG_OPTIONS})")
set(CTEST_SITE "${GMSH_HOST}")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "1000")
set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "1000")
......@@ -113,7 +113,7 @@ Public License (GPL)</a>:
versions in the <code>tutorial</code> directory. <br>Make sure to read
these examples before sending questions or bug reports!</em>
<li>Development version:
<ul><li>Automated nightly snapshots
<ul><li>Automated snapshots
(<a href="http://onelab.info/CDash/index.php?project=Gmsh">dashboard</a>):
<a href="bin/Windows/gmsh-git-Windows64.zip">Windows</a>
(<a href="bin/Windows/gmsh-git-Windows32.zip">32 bit</a>),
......
......@@ -4869,9 +4869,9 @@ by hand.
@node Compiling the source code, Information for developers, Options, Top
@appendix Compiling the source code
Stable releases and nightly source snapshots are available from
@url{http://gmsh.info/src/}. You can also access the Git
repository directly:
Stable releases and source snapshots are available from
@url{http://gmsh.info/src/}. You can also access the Git repository
directly:
@enumerate
@item
......
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 arch [gmsh|getdp]" 1>&2;
echo " with arch in [mac,linux64,win64,win32][_test]" 1>&2;
exit 1;
fi
if [ $# -lt 2 ] || [ $2 == "gmsh" ]; then
echo "========= Building Gmsh =========="
cd ${HOME}/src/gmsh
git pull
cd utils/nightly
ctest -VV -S ./gmsh_$1.ctest
fi
if [ $# -lt 2 ] || [ $2 == "getdp" ]; then
echo "========= Building GetDP =========="
cd ${HOME}/src/getdp
git pull
cd utils/nightly
ctest -VV -S ./getdp_$1.ctest
fi
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
# this is the common ctest script used by all gmsh nightly (and experimental)
# builds, on all architectures
set(CTEST_SITE "ace36.montefiore")
# custom the drop site
set(CUSTOM_DROP_SITE "onelab.info")
set(CUSTOM_DROP_LOCATION "/CDash/submit.php?project=Gmsh")
set(CUSTOM_DROP_PROJECT "Gmsh")
find_program(CTEST_GIT_COMMAND NAMES git)
find_program(CTEST_COVERAGE_COMMAND NAMES gcov)
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
if(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
set(CTEST_BUILD_CONFIGURATION "Debug")
else(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
set(CTEST_BUILD_CONFIGURATION "RelWithDebInfo")
endif(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
set(CTEST_SOURCE_DIRECTORY "$ENV{HOME}/src/gmsh")
set(CTEST_GIT_REPOS https://gitlab.onelab.info/gmsh/gmsh.git)
if(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
set(CTEST_CHECKOUT_COMMAND
"${CTEST_GIT_COMMAND} clone ${CTEST_GIT_REPOS} ${CTEST_SOURCE_DIRECTORY}")
endif(NOT EXISTS "${CTEST_SOURCE_DIRECTORY}")
set(CTEST_UPDATE_COMMAND "${CTEST_GIT_COMMAND}")
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CMAKE_COMMAND} -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION}")
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} \"-G${CTEST_CMAKE_GENERATOR}\"")
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} ${CTEST_BUILD_OPTIONS}")
if(CTEST_BUILD_OPTIONS_QUOTED)
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} \"${CTEST_BUILD_OPTIONS_QUOTED}\"")
endif(CTEST_BUILD_OPTIONS_QUOTED)
if(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} \"-DCMAKE_CXX_FLAGS=-g -O0 -fprofile-arcs -ftest-coverage\"")
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} \"-DCMAKE_C_FLAGS=-g -O0 -fprofile-arcs -ftest-coverage\"")
set(CTEST_CONFIGURE_COMMAND
"${CTEST_CONFIGURE_COMMAND} \"-DCMAKE_EXE_LINKER_FLAGS=-fprofile-arcs -ftest-coverage\"")
endif(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"${CTEST_SOURCE_DIRECTORY}\"")
# make sure everybody outputs messages in english
set($ENV{LC_MESSAGES} "en_US")
# select Experimental dashboard if none is selected
if(NOT CDASH_MODEL)
set(CDASH_MODEL "Experimental")
endif(NOT CDASH_MODEL)
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
ctest_start(${CDASH_MODEL})
# update from Git only for nightly builds
if(CDASH_MODEL MATCHES "Nightly")
ctest_update()
endif(CDASH_MODEL MATCHES "Nightly")
ctest_configure()
ctest_build(TARGET html)
ctest_build(TARGET package NUMBER_ERRORS ERR)
set(ENV{GMSH_BUILD_ERRORS} ${ERR})
if(WITH_TEST)
ctest_test()
endif(WITH_TEST)
if(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
ctest_coverage()
endif(WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
if(WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND)
ctest_memcheck()
endif(WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND)
ctest_submit()
macro(upload_package WEB ARCH EXTRA EXT1 EXT2)
if($ENV{GMSH_BUILD_ERRORS} GREATER 0)
message("Build reported $ENV{GMSH_BUILD_ERRORS} errors: skipping upload")
set(ENV{GMSH_BUILD_ERRORS} 0)
else($ENV{GMSH_BUILD_ERRORS} GREATER 0)
file(GLOB FILE ${CTEST_BINARY_DIRECTORY}/gmsh-*${EXT1})
if(FILE)
get_filename_component(BASENAME ${FILE} NAME)
if(APPLE) # re-sign package on ace36 (MacOSX 10.7 is too old to produce v2 sigs)
message("Re-signing MacOS build on ace36")
execute_process(COMMAND scp -C ${FILE} ace@ace36.montefiore.ulg.ac.be:/tmp
TIMEOUT 60)
execute_process(COMMAND ssh ace@ace36.montefiore.ulg.ac.be /Users/ace/re-sign.sh /tmp/${BASENAME}
TIMEOUT 60)
execute_process(COMMAND scp -C ace@ace36.montefiore.ulg.ac.be:/tmp/${BASENAME} ${FILE}
TIMEOUT 60)
message("Done re-signing MacOS build on ace36")
endif(APPLE)
message("Build succeeded: uploading package ${BASENAME} to web site")
if(${FILE} MATCHES "-git")
execute_process(COMMAND scp -C ${FILE} ${WEB}/gmsh-git-${ARCH}${EXTRA}${EXT2}
TIMEOUT 60)
else(${FILE} MATCHES "-git")
string(REPLACE ${EXT1} "" BASE ${BASENAME})
execute_process(COMMAND scp -C ${FILE} ${WEB}/${BASE}${EXTRA}${EXT2}
TIMEOUT 60)
endif(${FILE} MATCHES "-git")
message("Done uploading package to web site")
endif(FILE)
endif($ENV{GMSH_BUILD_ERRORS} GREATER 0)
endmacro(upload_package)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "/usr/local/bin/cmake")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(WEB_BIN "geuzaine@onelab.info:/home/www/gmsh.info/bin/Linux")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE FALSE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
if(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Linux64-dynamic")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_dynamic")
else(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Linux64")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin")
endif(BUILD_DYNAMIC)
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DCMAKE_PREFIX_PATH:path=/usr/local/opencascade;/usr/local")
set(OPT "${OPT} -DENABLE_NATIVE_FILE_CHOOSER:bool=FALSE")
set(OPT "${OPT} -DPETSC_ARCH=complex_mumps_seq")
set(OPT "${OPT} -DPETSC_DIR=$ENV{HOME}/src/petsc-3.7.5")
set(OPT "${OPT} -DSLEPC_DIR=$ENV{HOME}/src/slepc-3.7.3")
if(BUILD_DYNAMIC)
set(OPT "${OPT} -DENABLE_BUILD_DYNAMIC=1 -DENABLE_WRAP_PYTHON=1")
set(OPT "${OPT} -DENABLE_GMSHPY_SOURCE_PACKAGE=1")
endif(BUILD_DYNAMIC)
set(CTEST_BUILD_OPTIONS ${OPT})
include(gmsh.ctest)
if(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Linux 64-dynamic .tar.gz .tgz)
# also remove build files here to save space
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
else(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Linux 64 .tar.gz .tgz)
endif(BUILD_DYNAMIC)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "/usr/local/bin/cmake")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE TRUE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
set(CTEST_BUILD_NAME "Linux64-Coverage")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_coverage")
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DENABLE_FLTK=0")
#set(OPT "${OPT} -DENABLE_NETGEN=0 -DENABLE_DINTEGRATION=0")
#set(OPT "${OPT} -DENABLE_GMM=0 -DENABLE_METIS=0 -DENABLE_CHACO=0")
#set(OPT "${OPT} -DENABLE_ONELAB=0 -DENABLE_OPTHOM=0 -DENABLE_SALOME=0")
#set(OPT "${OPT} -DENABLE_VORO3D=0")
set(OPT "${OPT} -DCMAKE_PREFIX_PATH:path=/usr/local/opencascade;/usr/local")
set(OPT "${OPT} -DENABLE_NATIVE_FILE_CHOOSER:bool=FALSE")
set(OPT "${OPT} -DPETSC_ARCH=complex_mumps_seq")
set(OPT "${OPT} -DPETSC_DIR=$ENV{HOME}/src/petsc-3.7.5")
set(OPT "${OPT} -DSLEPC_DIR=$ENV{HOME}/src/slepc-3.7.3")
set(CTEST_BUILD_OPTIONS ${OPT})
include(gmsh.ctest)
# also remove build files here to save space
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
#
# this will launch a new build every night at 1h01
#
1 1 * * * cd ${HOME}/src/gmsh/utils/nightly && /usr/local/bin/ctest -S gmsh_linux64_nightly.ctest -VV > ${HOME}/src/gmsh/nightly.log 2>&1
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_NIGHTLY_START_TIME "22:00:00 UTC")
set(CDASH_MODEL "Nightly")
set(EXTRA_VERSION "-git")
include(gmsh_linux64.ctest)
set(EXTRA_VERSION "-coverage-git")
include(gmsh_linux64_coverage.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(EXTRA_VERSION "-git")
include(gmsh_linux64.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "/usr/local/bin/cmake")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(WEB_BIN "geuzaine@onelab.info:/home/www/gmsh.info/bin/MacOSX")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE FALSE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
if(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "MacOSX64-dynamic")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_dynamic")
else(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "MacOSX64")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin")
endif(BUILD_DYNAMIC)
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DCMAKE_PREFIX_PATH:path=/usr/local/opencascade;/usr/local")
set(OPT "${OPT} -DENABLE_CAIRO=0")
set(OPT "${OPT} -DPETSC_ARCH=complex_mumps_seq")
set(OPT "${OPT} -DPETSC_DIR=$ENV{HOME}/src/petsc-3.7.5")
set(OPT "${OPT} -DSLEPC_DIR=$ENV{HOME}/src/slepc-3.7.3")
set(OPT "${OPT} -DBLAS_LAPACK_LIBRARIES=/usr/local/lib/libopenblas.a")
if(BUILD_DYNAMIC)
set(OPT "${OPT} -DENABLE_BUILD_DYNAMIC=1 -DENABLE_WRAP_PYTHON=1")
set(OPT "${OPT} -DENABLE_GMSHPY_SOURCE_PACKAGE=1")
set(OPT "${OPT} -DENABLE_OS_SPECIFIC_INSTALL=0")
endif(BUILD_DYNAMIC)
set(CTEST_BUILD_OPTIONS ${OPT})
include(gmsh.ctest)
if(BUILD_DYNAMIC)
upload_package(${WEB_BIN} MacOSX -dynamic .tar.gz .tgz)
else(BUILD_DYNAMIC)
upload_package(${WEB_BIN} MacOSX "" .dmg .dmg)
endif(BUILD_DYNAMIC)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_NIGHTLY_START_TIME "22:00:00 UTC")
set(CDASH_MODEL "Nightly")
set(EXTRA_VERSION "-git")
include(gmsh_mac.ctest)
#!/bin/sh
# this is supposed to be called by launchd:
# * copy org.geuz.gmsh.nightly.plist to ~/Library/LauchAgents/
# * launchctl load ~/Library/LaunchAgents/org.geuz.gmsh.nightly.plist
cd ${HOME}/src/gmsh/utils/nightly && /usr/local/bin/ctest -S gmsh_mac_nightly.ctest -VV > ${HOME}/src/gmsh/nightly.log 2>&1
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(EXTRA_VERSION "-git")
include(gmsh_mac.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "C:/Program Files (x86)/CMake 2.8/bin/cmake.exe")
set(CTEST_CMAKE_GENERATOR "Visual Studio 11")
set(WEB_BIN "geuzaine@onelab.info:/home/www/gmsh.info/bin/Windows")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE FALSE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
set(CTEST_BUILD_NAME "Win64-msvc-mkl")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_msvc")
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DENABLE_FLTK=0")
set(CTEST_BUILD_OPTIONS "${OPT}")
set(CTEST_BUILD_OPTIONS_QUOTED "-DCMAKE_PREFIX_PATH:path=C:/Program Files/Intel/MKL/10.0.4.023/")
include(gmsh.ctest)
# upload_package(${WEB_BIN} Windows 64-msvc .zip .zip)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_NIGHTLY_START_TIME "22:00:00 UTC")
set(CDASH_MODEL "Nightly")
set(EXTRA_VERSION "-msvc-git")
include(gmsh_msvc.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "cmake")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(WEB_BIN "geuzaine@onelab.info:/home/www/gmsh.info/bin/Windows")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE FALSE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
if(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Win32-dynamic")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_dynamic")
else(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Win32")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin")
endif(BUILD_DYNAMIC)
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DCMAKE_PREFIX_PATH:path=/usr/local/opencascade;/usr/local;/usr/i686-w64-mingw32/sys-root/mingw")
set(OPT "${OPT} -DCMAKE_C_COMPILER=/usr/bin/i686-w64-mingw32-gcc.exe")
set(OPT "${OPT} -DCMAKE_CXX_COMPILER=/usr/bin/i686-w64-mingw32-g++.exe")
set(OPT "${OPT} -DCMAKE_Fortran_COMPILER=/usr/bin/i686-w64-mingw32-gfortran.exe")
set(OPT "${OPT} -DCMAKE_RC_COMPILER=/usr/bin/i686-w64-mingw32-windres.exe")
set(OPT "${OPT} -DPETSC_ARCH=complex_mumps_seq")
set(OPT "${OPT} -DPETSC_DIR=$ENV{HOME}/src/petsc-3.7.5")
set(OPT "${OPT} -DSLEPC_DIR=$ENV{HOME}/src/slepc-3.7.3")
if(BUILD_DYNAMIC)
set(OPT "${OPT} -DENABLE_BUILD_DYNAMIC=1")
endif(BUILD_DYNAMIC)
set(CTEST_BUILD_OPTIONS ${OPT})
include(gmsh.ctest)
if(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Windows 32-dynamic .zip .zip)
else(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Windows 32 .zip .zip)
endif(BUILD_DYNAMIC)
@echo off
C:
chdir C:\cygwin\bin
bash --login -c "cd ${HOME}/src/gmsh/utils/nightly && ctest -S gmsh_win32_nightly.ctest -VV > ${HOME}/src/gmsh/nightly.log 2>&1"
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_NIGHTLY_START_TIME "22:00:00 UTC")
set(CDASH_MODEL "Nightly")
set(EXTRA_VERSION "-git")
include(gmsh_win32.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(EXTRA_VERSION "-git")
include(gmsh_win32.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_CMAKE_COMMAND "cmake")
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(WEB_BIN "geuzaine@onelab.info:/home/www/gmsh.info/bin/Windows")
set(WITH_TEST TRUE) # run the tests?
set(WITH_COVERAGE FALSE) # check code coverage?
set(WITH_MEMCHECK FALSE) # check memory with valgrind?
#################################################################################
if(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Win64-dynamic")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin_dynamic")
else(BUILD_DYNAMIC)
set(CTEST_BUILD_NAME "Win64")
set(CTEST_BINARY_DIRECTORY "$ENV{HOME}/src/gmsh/bin")
endif(BUILD_DYNAMIC)
set(OPT "-DGMSH_EXTRA_VERSION=${EXTRA_VERSION}")
set(OPT "${OPT} -DCMAKE_PREFIX_PATH:path=/usr/local/opencascade;/usr/local;/usr/x86_64-w64-mingw32/sys-root/mingw")
set(OPT "${OPT} -DCMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc.exe")
set(OPT "${OPT} -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe")
set(OPT "${OPT} -DCMAKE_Fortran_COMPILER=/usr/bin/x86_64-w64-mingw32-gfortran.exe")
set(OPT "${OPT} -DCMAKE_RC_COMPILER=/usr/bin/x86_64-w64-mingw32-windres.exe")
set(OPT "${OPT} -DPETSC_ARCH=complex_mumps_seq")
set(OPT "${OPT} -DPETSC_DIR=$ENV{HOME}/src/petsc-3.7.5")
set(OPT "${OPT} -DSLEPC_DIR=$ENV{HOME}/src/slepc-3.7.3")
if(BUILD_DYNAMIC)
set(OPT "${OPT} -DENABLE_BUILD_DYNAMIC=1")
endif(BUILD_DYNAMIC)
set(CTEST_BUILD_OPTIONS ${OPT})
include(gmsh.ctest)
if(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Windows 64-dynamic .zip .zip)
else(BUILD_DYNAMIC)
upload_package(${WEB_BIN} Windows 64 .zip .zip)
endif(BUILD_DYNAMIC)
@echo off
C:
chdir C:\cygwin64\bin
bash --login -c "cd ${HOME}/src/gmsh/utils/nightly && ctest -S gmsh_win64_nightly.ctest -VV > ${HOME}/src/gmsh/nightly.log 2>&1"
bash --login -c "cd ${HOME}/src/gmsh/utils/nightly && /cygdrive/c/Program\ Files\ \(x86\)/CMake\ 2.8/bin/ctest.exe -S gmsh_msvc_nightly.ctest -VV > ${HOME}/src/gmsh/nightly_msvc.log 2>&1"
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(CTEST_NIGHTLY_START_TIME "22:00:00 UTC")
set(CDASH_MODEL "Nightly")
set(EXTRA_VERSION "-git")
include(gmsh_win64.ctest)
# Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
#
# See the LICENSE.txt file for license information. Please report all
# bugs and problems to the public mailing list <gmsh@onelab.info>.
set(EXTRA_VERSION "-git")
include(gmsh_win64.ctest)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.geuz.gmsh.nightly</string>
<key>ProgramArguments</key>
<array>
<string>/Users/geuzaine/src/gmsh/utils/nightly/gmsh_mac_nightly.sh</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>0</integer>
<key>Minute</key>
<integer>1</integer>
</dict>
</dict>
</plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment