-
Notifications
You must be signed in to change notification settings - Fork 4
/
.appveyor.yml
59 lines (38 loc) · 1.86 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '{build}'
image:
- Visual Studio 2017
# - Visual Studio 2015
platform: x64
environment:
matrix:
- PLATFORM: x64
# - PLATFORM: x86
branches:
only:
- testing
- master
build_script:
- cmd: >-
set CONDA_PREFIX=C:\Miniconda3
if "%PLATFORM%" == "x64" set CONDA_PREFIX=C:\Miniconda3-x64
set PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Scripts;%PATH%
perl -i.bak -n -e"print unless m{(pthread)}" CMakeLists.txt
conda install -y -c conda-forge tbb=2018_20171205
mkdir catch
mkdir catch\catch
curl -L https://github.com/philsquared/Catch/releases/download/v1.9.7/catch.hpp > catch/catch/catch.hpp
mkdir build
cd build
curl -L -O https://github.com/philipphenkel/threadpool/archive/master.zip
unzip master
curl -L -O https://github.com/csiro-hydroinformatics/c-interop/archive/master.zip
unzip master
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set CMAKE_GENERATOR=Visual Studio 14 2015
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set BOOST_ROOT=C:\Libraries\boost_1_63_0
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" set CMAKE_GENERATOR=Visual Studio 15 2017
if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" set BOOST_ROOT=C:\Libraries\boost_1_64_0
if "%PLATFORM%" == "x64" set CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64
cmake -G "%CMAKE_GENERATOR%" --target ALL_BUILD -DBoost_USE_STATIC_LIBS=ON -DCATCH_INCLUDE_DIRS=C:\projects\wila\catch -DBOOST_ROOT=%BOOST_ROOT% -DBoost_INCLUDE_DIRS=%BOOST_ROOT%\include -DTHREADPOOL_INCLUDE_DIRS=threadpool-master -DCINTEROP_INCLUDE_DIRS=c-interop-master\include -DTBB_LIBRARIES=%CONDA_PREFIX%\Library\lib -DTBB_INCLUDE_DIRS=%CONDA_PREFIX%\Library\include -DCMAKE_BUILD_TYPE=Release ..
msbuild wila_tests.vcxproj /p:Platform="%PLATFORM%" /p:Configuration=Release
test_script:
- cmd: Release\wila_tests.exe