-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
41 lines (38 loc) · 1.78 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
image: Visual Studio 2017
clone_folder: c:\projects\tools-Propaga
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
- 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++,libboost-devel,cmake
- 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
- cd ..
- cd C:\projects\tools-Propaga
build_script:
- mkdir build
- cd build
- if [%COMPILER%]==[cygwin] cmake .. -G "Unix Makefiles"
- if [%COMPILER%]==[cygwin] cmake --build . --target install
- if [%COMPILER%]==[vs] cmake .. -G "Visual Studio 15 2017" "-DCMAKE_TOOLCHAIN_FILE=C:\projects\vcpkg\scripts\buildsystems\vcpkg.cmake"
- if [%COMPILER%]==[vs] cmake --build . --target install