Debian Codegraph @

.appveyor.yml

raw symbols SCIP
1 version: '{build}'
2
3 # https://www.appveyor.com/docs/build-environment/#build-worker-images
4 image: Visual Studio 2019
5
6 install:
7
8 # Start from outside clone directory
9 - cd ..
10
11 # Install MS-MPI
12 - ps: Start-FileDownload 'https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/MSMpiSetup.exe'
13 - MSMpiSetup.exe -unattend
14 - set PATH=C:\Program Files\Microsoft MPI\Bin;%PATH%
15
16 # Install MS-MPI SDK
17 - ps: Start-FileDownload 'https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/msmpisdk.msi'
18 - msmpisdk.msi /passive
19 - set PATH=C:\Program Files\Microsoft MPI\Bin;%PATH%
20
21 # Set MSMPI environment variables needed for CMake detection
22 - set MSMPI_LIB32=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86
23 - set MSMPI_LIB64=C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64
24 - set MSMPI_INC=C:\Program Files (x86)\Microsoft SDKs\MPI\Include
25
26 # Install METIS, use MFEM's mirror because the original source server is often
27 # down and we don't support yet the new repo https://github.com/KarypisLab/METIS
28 - ps: Start-FileDownload 'https://mfem.github.io/tpls/metis-5.1.0.tar.gz'
29 - 7z x metis-5.1.0.tar.gz -so | 7z x -si -ttar > nul
30 - cd metis-5.1.0
31 - ps: ( get-content "GKlib\gk_arch.h") | % { If ($_.ReadCount -ge 52) {$_ -replace "#ifdef __MSC__","#ifdef DISABLE_THIS_ANCIENT_MSC_CHECK"} Else {$_} } | set-content "GKlib\gk_arch.h"
32 - cmake -H. -Bbuild
33 # -DCMAKE_BUILD_TYPE=Release
34 - cmake --build build --target metis -j 4
35 - set METIS_PATH=%cd%
36 - cd ..
37
38 # Install hypre
39 - ps: Start-FileDownload 'https://github.com/hypre-space/hypre/archive/v2.19.0.tar.gz'
40 - 7z x v2.19.0.tar.gz -so | 7z x -si -ttar > nul
41 - cd hypre-2.19.0/src
42 - cmake -H. -Bbuild
43 - cmake --build build -j 4
44 - cmake --build build --target install
45 - cd ../..
46
47 # Return to clone directory
48 - cd %APPVEYOR_BUILD_FOLDER%
49
50 # MFEM
51 before_build:
52 - cmake . -Bbuild_parallel -DMFEM_USE_MPI=TRUE -DMFEM_USE_METIS_5=TRUE -DHYPRE_DIR=%cd%\..\hypre-2.19.0\src\hypre -DMETIS_LIBRARIES=%METIS_PATH%\build\libmetis\Debug\metis.lib -DMETIS_INCLUDE_DIRS=%METIS_PATH%\include
53 # - cmake . -Bbuild_serial -DMFEM_USE_MPI=FALSE
54 - cmake . -Bbuild_shared_serial -DMFEM_USE_MPI=FALSE -DBUILD_SHARED_LIBS=ON
55
56 build_script:
57 - cmake --build build_parallel --config Debug -j 4
58 # - cmake --build build_serial --config Release -j 4
59 # - cmake --build build_serial --target exec --config Release -j 4
60 - cmake --build build_shared_serial --config Release -j 4
61 - cmake --build build_shared_serial --target exec --config Release -j 4
62
63 after_build:
64 # - cd build_serial
65 # - ctest -C Release --output-on-failure
66 # - cd ..
67 - cd build_shared_serial
68 - ctest -C Release --output-on-failure