forked from libbitcoin/libbitcoin-system
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.appveyor.yml
208 lines (182 loc) · 6.87 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#
# Copyright (c) 2017-2018 Bitprim Inc.
#
# This file is part of Bitprim.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
branches:
only:
- master
# - /^v\d+\.\d+\.\d+$/
- dev
- /^release-\d+\.\d+\.\d+$/
- /^release_\d+\.\d+\.\d+$/
- /^hotfix-\d+\.\d+\.\d+$/
- /^hotfix_\d+\.\d+\.\d+$/
- /^feature-ci-.+$/
- /^feature_ci_.+$/
- /^feature-appveyor-.+$/
- /^feature_appveyor_.+$/
build: false
environment:
PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.8"
PYTHON_ARCH: "32"
CONAN_STABLE_BRANCH_PATTERN: "master$" #"release/*"
install:
- set PATH=%PATH%;%PYTHON%/Scripts/
- python -m pip install --upgrade pip
# - pip.exe install conan --upgrade > NUL
# - pip.exe install conan_package_tools > NUL
- pip.exe install conan==1.9.1 > NUL
- pip.exe install conan_package_tools==0.20.0 > NUL
- pip.exe install cpuid --upgrade > NUL
- conan user # It creates the conan data directory
test_script:
- git submodule init
# - git submodule update --remote
- git submodule update
# - git fetch --unshallow
- git fetch origin master:master
# - git tag
# - git describe
# - git describe master
# - git describe origin
# - python ci_utils/print_version.py
# - dir C:\MinGW
- set PATH=C:\MinGW\bin;%PATH%
- IF "%MINGW_CONFIGURATIONS%" NEQ "" (
gcc --version
)
- ps: |
If ($env:WAIT_FOR_DEPS -ne 1) {
$a = python ci_utils/set_envvars_and_files.py
Write-Host $a
Invoke-Expression $a
conan remote add bitprim https://api.bintray.com/conan/bitprim/bitprim
# conan info . --only None
# conan info . --only None -s compiler=gcc -s compiler.version=5 -s compiler.libcxx=libstdc++
python ci_utils/process_conan_reqs.py
conan remote remove bitprim
}
- ps: |
If ($env:WAIT_FOR_DEPS -eq 1) {
conan user
conan remote add bitprim_temp https://api.bintray.com/conan/bitprim/bitprim
echo "waiting for secp256k1/0.X@bitprim/staging ..."
conan search secp256k1/0.X@bitprim/staging -r bitprim_temp > $null
while($env:lastExitCode -eq 1) {
Write-Host "."
Start-Sleep -s 10
conan search secp256k1/0.X@bitprim/staging -r bitprim_temp > $null
}
Write-Host "secp256k1/0.X@bitprim/staging found"
}
# Else {
# python build.py
# }
- PowerShell .\.appveyor\build.ps1
for:
-
branches:
only:
- /(dev|feature).*/ # Just development branches
environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MT
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
-
branches:
only:
- /(release|hotfix).+/ #Just releases
environment:
matrix:
- WAIT_FOR_DEPS: 1
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MT
# BITPRIM_RUN_TESTS: true
BITPRIM_CI_CURRENCY: BCH
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MT
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: true
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MT
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: false
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MT
BITPRIM_CI_CURRENCY: BTC
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MD
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: true
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MD
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: false
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CONAN_VISUAL_VERSIONS: 15
CONAN_VISUAL_RUNTIMES: MD
BITPRIM_CI_CURRENCY: BTC
BITPRIM_RUN_TESTS: true
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# CONAN_VISUAL_VERSIONS: 14
# BITPRIM_CI_CURRENCY: BCH
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# CONAN_VISUAL_VERSIONS: 14
# BITPRIM_CI_CURRENCY: BTC
# - MINGW_CONFIGURATIONS: "8@x86_64@seh@posix"
- MINGW_CONFIGURATIONS: "7@x86_64@seh@posix"
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: true
- MINGW_CONFIGURATIONS: "7@x86_64@seh@posix"
BITPRIM_CI_CURRENCY: BCH
BITPRIM_WITH_KEOKEN: false
- MINGW_CONFIGURATIONS: "7@x86_64@seh@posix"
BITPRIM_CI_CURRENCY: BTC
# - MINGW_CONFIGURATIONS: "6@x86_64@seh@posix"
# - MINGW_CONFIGURATIONS: "5@x86_64@seh@posix"
-
branches:
only:
- master
test_script:
- echo "Stable packages are published in Release branches"
install:
- echo "Stable packages are published in Release branches"
# MINGW_CONFIGURATIONS: "4.9@x86_64@seh@posix"
# matrix:
# fast_finish: true # set this flag to immediately finish build once one of the jobs fails.