-
Notifications
You must be signed in to change notification settings - Fork 26
/
appveyor.yml
43 lines (40 loc) · 2.19 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
image: Visual Studio 2017
clone_folder: c:\projects\piccante
configuration: Release
environment:
matrix:
- platform: cygwin64
COMPILER: cygwin
CYGWIN_NOWINPATH: yes
- platform: Win32
COMPILER: vs
install:
- if [%COMPILER%]==[vs] cinst cmake
- if [%COMPILER%]==[vs] SET "PATH=C:\Program Files\CMake\bin;%PATH%"
- if [%COMPILER%]==[vs] call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
- if [%COMPILER%]==[cygwin] SET "PATH=C:\cygwin64\bin;C:\cygwin64\usr\bin;%PATH%"
- if [%COMPILER%]==[cygwin] SET PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- git submodule -q update --init --recursive
- cd ..
- mkdir C:\projects\deps
- cd C:\projects\deps
- ps: if($env:COMPILER -eq "vs") { Invoke-WebRequest https://download.microsoft.com/download/A/E/0/AE002626-9D9D-448D-8197-1EA510E297CE/msmpisetup.exe -OutFile C:\projects\deps\msmpi.exe }
- if [%COMPILER%]==[vs] C:\projects\deps\msmpi.exe -unattend
- mkdir cygwin-downloads
- ps: if($env:COMPILER -eq "cygwin") { Invoke-WebRequest https://cygwin.com/setup-x86_64.exe -OutFile C:\projects\deps\cygwin-setup.exe }
- if [%COMPILER%]==[cygwin] C:\projects\deps\cygwin-setup.exe --quiet-mode --no-shortcuts --no-startmenu --no-desktop --upgrade-also --root C:\cygwin64 --local-package-dir C:\projects\deps\cygwin-downloads --packages gcc-g++,libopenmpi-devel,cmake,libboost-devel,libhdf5-devel,libfftw3-devel,zlib-devel
- cd ..
- git clone https://github.com/Microsoft/vcpkg
- cd vcpkg
- if [%COMPILER%]==[vs] powershell -exec bypass scripts\bootstrap.ps1
- if [%COMPILER%]==[vs] vcpkg integrate install
- if [%COMPILER%]==[vs] vcpkg install boost-system boost-filesystem boost-math msmpi hdf5 fftw3 jsoncpp
- cd ..
- cd C:\projects\piccante
build_script:
- mkdir build
- cd build
- if [%COMPILER%]==[cygwin] cmake .. -G "Unix Makefiles" -DBUILD_EXAMPLES=ON
- if [%COMPILER%]==[cygwin] cmake --build . --target install
- if [%COMPILER%]==[vs] cmake .. -G "Visual Studio 15 2017" -DBUILD_EXAMPLES=ON "-DCMAKE_TOOLCHAIN_FILE=C:\projects\vcpkg\scripts\buildsystems\vcpkg.cmake"
- if [%COMPILER%]==[vs] cmake --build . --target install --config Release