forked from open-quantum-safe/liboqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (52 loc) · 1.54 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
version: 1.0.{build}
# TODO: Support Visual Studio 2017
image: Visual Studio 2019
platform: x64
branches:
except:
- /main-new-.*/
- /ghactionsonly-.*/
environment:
matrix:
- BUILD_SHARED: ON
COMPILER: cygwin
- BUILD_SHARED: OFF
COMPILER: cygwin
- BUILD_SHARED: ON
OQS_USE_OPENSSL: ON
COMPILER: cygwin
- BUILD_SHARED: OFF
COMPILER: msvc2019
- BUILD_SHARED: OFF
COMPILER: msvc2019
OQS_USE_OPENSSL: ON
- BUILD_SHARED: ON
COMPILER: msvc2019
- BUILD_SHARED: OFF
COMPILER: msys2
- BUILD_SHARED: ON
COMPILER: msys2
for:
- matrix:
only:
- OQS_USE_OPENSSL: ON
before_build:
- cmd: |-
choco install openssl
SET "OPENSSL_ROOT_DIR=C:\OpenSSL-Win64"
build_script:
- cmd: '%APPVEYOR_BUILD_FOLDER%\appveyor_build.bat'
before_test:
- cmd: |-
SET "PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%"
pip.exe install pytest pytest-xdist pyyaml
test_script:
- cmd: |-
cd %APPVEYOR_BUILD_FOLDER%
set PATH=%APPVEYOR_BUILD_FOLDER%\build\bin;c:\cygwin64\bin;%PATH%
if not exist tmp (mkdir tmp)
python -m pytest --numprocesses=auto -vv --maxfail=10 --ignore=tests/test_code_conventions.py --junitxml=build\test-results\pytest\test-results.xml
after_test:
- ps: |-
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\build\test-results\pytest\test-results.xml))