forked from NilFoundation/crypto3-multiprecision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
149 lines (126 loc) · 8.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# Copyright 2016 Peter Dimov
# Copyright 2019 Aleksey Moskvin <[email protected]>
# Copyright 2019 Mikhail Komarov <[email protected]>
# Copyright 2019 Nil Foundation AG
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
version: 1.0.{build}-{branch}
shallow_clone: true
branches:
only:
- master
- develop
- cmake-develop
- 2-modular-adaptor
platform:
- x64
os: unstable
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
ARGS: --toolset=msvc-14.2 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
ARGS: --toolset=msvc-14.2 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
ARGS: --toolset=msvc-14.0 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
ARGS: --toolset=msvc-14.0 address-model=64 cxxstd=17
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-10.0 address-model=32
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-10.0 address-model=32
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-11.0 address-model=32
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-11.0 address-model=32
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-12.0 address-model=32
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-12.0 address-model=32
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-14.0 address-model=32
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-14.0 address-model=32
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-12.0 address-model=64
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-12.0 address-model=64
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=msvc-14.0 address-model=64
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=msvc-14.0 address-model=64
TARGETS: conversions misc compile_fail examples concepts
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=gcc address-model=64
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=gcc address-model=64
TARGETS: conversions misc compile_fail examples concepts
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
- ARGS: --toolset=gcc address-model=64 cxxstd=2a cxxstd-dialect=gnu
TARGETS: arithmetic_tests cpp_int_tests functions_and_limits
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TARGETS_CMAKE: multiprecision_test_suite_arithmetic_tests multiprecision_test_suite_cpp_int_tests multiprecision_test_suite_functions_and_limits
- ARGS: --toolset=gcc address-model=64 cxxstd=2a cxxstd-dialect=gnu
TARGETS: conversions misc compile_fail examples concepts
PATH: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
TARGETS_CMAKE: multiprecision_test_suite_conversions multiprecision_test_suite_misc multiprecision_test_suite_compile_fail multiprecision_test_suite_examples multiprecision_test_suite_concepts
install:
- cd ..
- if not %APPVEYOR_REPO_BRANCH% == "master" if not %APPVEYOR_REPO_BRANCH% == "develop" (
git clone -b develop --depth 1 https://github.com/boostorg/boost.git boost-root
) Else (
git clone -b %APPVEYOR_REPO_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
)
- cd boost-root
- git submodule update --init tools/build
- git submodule update --init tools/boost_install
- git submodule update --init libs/headers
- git submodule update --init libs/config
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\multiprecision
- git submodule update --init tools/boostdep
- python tools/boostdep/depinst/depinst.py multiprecision
- bootstrap.bat
- b2 headers
- b2 install
build: off
test_script:
- cd libs\config\test
- ..\..\..\b2 config_info_travis_install %ARGS%
- config_info_travis
- cd ..\..\multiprecision\test
- ..\..\..\b2 --hash -j3 %ARGS% %TARGETS% define=CI_SUPPRESS_KNOWN_ISSUES
- cd ..
- for /f %%a in ('dir /b C:\Boost\lib\cmake\Boost-*') do (set boost_dir=C:\Boost\lib\cmake\%%a)
- mkdir cmake-build
- cd cmake-build
- cmake -DBoost_DIR=%boost_dir% -DBUILD_TESTS=TRUE -DCMAKE_CXX_STANDARD=14 -DBUILD_WITH_CI_KNOWN_ISSUES_SUPPRESS=TRUE -DBUILD_SHARED_LIBS=TRUE -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE --build ..
# - cmake --build C:/projects/boost-root/libs/multiprecision/cmake-build --target %TARGETS_CMAKE%