liboqs/appveyor.yml
Douglas Stebila b803b54179
Use Github Actions for some CI (#1069)
* Disable other CI's on ghactionsonly- branches

* Stylecheck in Github Actions

* Add runs-on

* Add buildcheck in Github Actions

* Typo

* Debugging

* Debugging environment variables

* More debugging

* Add alpine job in Github Actions

* Debugging

* Debugging

* More debugging

* Add alpine-noopenssl job in Github Actions

* Alpine as a strategy matrix

* Debugging strategy matrix

* Reorganize strategy matrix

* Add ARM emulated job in Github Actions

* Finalize initial move to Github Actions

* Skip alg info test on ARM emulated
2021-08-11 20:59:27 -04:00

62 lines
1.6 KiB
YAML

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))