forked from bluescarni/obake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (43 loc) · 2.3 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
version: '{build}'
branches:
except:
- /pr\/.+/
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
BUILD_TYPE: MSVC17_clang_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 Preview
BUILD_TYPE: MSVC19_64
install:
- call "C:\\Miniconda37-x64\\Scripts\\activate.bat"
- conda config --set always_yes yes
- conda update -n base conda
- conda config --add channels conda-forge
- conda config --set channel_priority strict
- if [%BUILD_TYPE%]==[MSVC19_64] conda create --name obake cmake boost-cpp mppp tbb tbb-devel abseil-cpp fmt
- if [%BUILD_TYPE%]==[MSVC17_clang_64] conda create --name obake cmake boost-cpp mppp tbb tbb-devel clang clangxx ninja abseil-cpp fmt
- call activate obake
- if [%BUILD_TYPE%]==[MSVC17_clang_64] clang-cl -v
- if [%BUILD_TYPE%]==[MSVC17_clang_64] call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
build_script:
- set CONDA_PREFIX_PATH=C:\Miniconda37-x64\envs\obake\Library
- mkdir build
- cd build
# obake
- if [%BUILD_TYPE%]==[MSVC19_64] cmake .. -G "Visual Studio 16 2019" -A x64 -DOBAKE_BUILD_TESTS=yes -DBoost_NO_BOOST_CMAKE=ON
- if [%BUILD_TYPE%]==[MSVC19_64] cmake --build . --config RelWithDebInfo
- if [%BUILD_TYPE%]==[MSVC17_clang_64] cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_PREFIX_PATH=%CONDA_PREFIX_PATH% -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX_PATH% -DOBAKE_BUILD_TESTS=ON -DBoost_NO_BOOST_CMAKE=ON
- if [%BUILD_TYPE%]==[MSVC17_clang_64] cmake --build . -- -v
- if [%BUILD_TYPE%]==[MSVC17_clang_64] cmake --build . --target install
test_script:
# NOTE: ensure the PATH variable contains the path to the obake dll,
# otherwise the tests will fail to run.
- if [%BUILD_TYPE%]==[MSVC19_64] set PATH=%PATH%;%CD%\RelWithDebInfo
- if [%BUILD_TYPE%]==[MSVC19_64] ctest -j4 -V -C RelWithDebInfo
- if [%BUILD_TYPE%]==[MSVC17_clang_64] set PATH=%PATH%;%CD%
- if [%BUILD_TYPE%]==[MSVC17_clang_64] ctest -j4 -V .
# Enable this to be able to login to the build worker. You can use the
# `remmina` program in Ubuntu, use the login information that the line below
# prints into the log.
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))